Skip to content

fix return code on update command #58

fix return code on update command

fix return code on update command #58

Workflow file for this run

name: deployment
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: mbstring, PDO, pdo_sqlite
- name: Run Composer
run: composer install
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}:latest .
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository }}:latest
- name: Trigger Watchtower Refresh
run: |
curl --fail -X POST https://watchtower.splitbrain.net/v1/update \
-H "Authorization: Bearer ${{ secrets.WATCHTOWER_HTTP_API_TOKEN }}"