From df3a48faedb741e1cae73868135a50ae309cc460 Mon Sep 17 00:00:00 2001 From: Valentin Heiserer Date: Tue, 26 Aug 2025 01:40:09 +0200 Subject: [PATCH] fix: change runner to self-hosted and add updater notification step --- .github/workflows/BuildAndPushContainer.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/BuildAndPushContainer.yml b/.github/workflows/BuildAndPushContainer.yml index cceac87..d225fef 100644 --- a/.github/workflows/BuildAndPushContainer.yml +++ b/.github/workflows/BuildAndPushContainer.yml @@ -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 }} \ No newline at end of file + 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 \ No newline at end of file