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:
|
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 }}'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue