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