Update web-deploy.yml
This commit is contained in:
parent
8aaabe496c
commit
8f329d8e13
1 changed files with 8 additions and 1 deletions
9
.github/workflows/web-deploy.yml
vendored
9
.github/workflows/web-deploy.yml
vendored
|
|
@ -15,7 +15,7 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- web/**
|
- web/**
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
environment: dev
|
environment: dev
|
||||||
runs-on: ['self-hosted', 'pi']
|
runs-on: ['self-hosted', 'pi']
|
||||||
permissions:
|
permissions:
|
||||||
|
|
@ -33,6 +33,13 @@ 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:
|
||||||
|
environment: dev
|
||||||
|
runs-on: ['self-hosted', 'pi']
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
- name: Deploy to Coolify
|
- name: Deploy to Coolify
|
||||||
run: |
|
run: |
|
||||||
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