mirror of
https://github.com/Vale54321/schafkop-neu.git
synced 2025-12-11 09:59:33 +01:00
fix: change runner to self-hosted and add updater notification step
This commit is contained in:
11
.github/workflows/BuildAndPushContainer.yml
vendored
11
.github/workflows/BuildAndPushContainer.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user