Skip to content

catch throwables on updating #60

catch throwables on updating

catch throwables on updating #60

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.2
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 }}"