fix: change runner to self-hosted and add updater notification step

This commit is contained in:
2025-08-26 01:40:09 +02:00
parent 8067f931d7
commit df3a48faed

View File

@@ -12,7 +12,7 @@ env:
jobs:
build-and-push:
runs-on: ubuntu-latest
runs-on: [self-hosted]
permissions:
contents: read
packages: write
@@ -52,4 +52,11 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
- name: Notify updater (GET, bearer)
if: ${{ success() && github.ref == 'refs/heads/main' }}
env:
WEBHOOK_TOKEN: ${{ secrets.GITHUB_WEBHOOK_TOKEN }}
run: |
curl -fsS --retry 5 -H "Authorization: Bearer ${WEBHOOK_TOKEN}" http://10.0.3.185:8080/v1/update