push version #8
1 changed files with 11 additions and 2 deletions
13
.github/workflows/web-deploy.yml
vendored
13
.github/workflows/web-deploy.yml
vendored
|
|
@ -15,9 +15,9 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- web/**
|
- web/**
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
environment: dev
|
environment: dev
|
||||||
runs-on: ['self-hosted', 'pi']
|
runs-on: 'ubuntu-latest'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
@ -33,6 +33,15 @@ 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
|
||||||
|
needs: build
|
||||||
|
if: always() && needs.build.result == 'success'
|
||||||
|
runs-on: 'ubuntu-latest'
|
||||||
|
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