Update web-deploy-nonprod.yml

This commit is contained in:
Matt DiMeglio 2025-06-11 15:11:29 -04:00 committed by GitHub
parent 381913620d
commit 8af7195cac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ on:
jobs: jobs:
build: build:
if: inputs.workflow_type != 'release' if: inputs.workflow_type != 'release'
environment: dev environment: ${{ input.environments }}
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
permissions: permissions:
contents: read contents: read
@ -37,17 +37,17 @@ jobs:
run: docker build -f web/Dockerfile -t john4064/shiftsync:latest_web ./web --build-arg TEST=${{ secrets.TEST }} run: docker build -f web/Dockerfile -t john4064/shiftsync:latest_web ./web --build-arg TEST=${{ secrets.TEST }}
- name: Docker Push Backend - name: Docker Push Backend
run: docker push john4064/shiftsync:latest_web run: docker push john4064/shiftsync:latest_web
deploy: # deploy:
needs: build # needs: build
if: needs.build.result == 'success' && inputs.workflow_type != 'release' # if: needs.build.result == 'success' && inputs.workflow_type != 'release'
environment: dev # environment: ${{ input.environments }}
runs-on: 'ubuntu-latest' # runs-on: 'ubuntu-latest'
permissions: # permissions:
contents: read # contents: read
packages: write # packages: write
steps: # steps:
- name: Deploy to Coolify # - name: Deploy to Coolify
run: | # run: |
echo ${{ needs.determine-workflow.outputs.workflow_type }} # echo ${{ inputs.workflow_type }}
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}' # curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'