Update web-deploy-nonprod.yml
This commit is contained in:
parent
381913620d
commit
8af7195cac
1 changed files with 14 additions and 14 deletions
28
.github/workflows/web-deploy-nonprod.yml
vendored
28
.github/workflows/web-deploy-nonprod.yml
vendored
|
|
@ -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 }}'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue