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: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: [self-hosted]
permissions: permissions:
contents: read contents: read
packages: write packages: write
@@ -53,3 +53,10 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }} 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