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:
|
||||
- web/**
|
||||
jobs:
|
||||
deploy:
|
||||
build:
|
||||
environment: dev
|
||||
runs-on: ['self-hosted', 'pi']
|
||||
runs-on: 'ubuntu-latest'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
|
@ -33,6 +33,15 @@ 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:
|
||||
environment: dev
|
||||
needs: build
|
||||
if: always() && needs.build.result == 'success'
|
||||
runs-on: 'ubuntu-latest'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Deploy to Coolify
|
||||
run: |
|
||||
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'
|
||||
|
|
|
|||
Loading…
Reference in a new issue