aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-12-22 13:19:30 -0500
committerXe Iaso <me@xeiaso.net>2024-12-22 13:19:30 -0500
commit40e16847369844da7a54b40ad491067c8e01747c (patch)
tree3c8a59097f220542bb66493e140c53224dcbfaee /.github
parentbda7fb414be7d9398a68d58893a69f6d293ca8e6 (diff)
downloadx-40e16847369844da7a54b40ad491067c8e01747c.tar.xz
x-40e16847369844da7a54b40ad491067c8e01747c.zip
try building actions runner image in CI
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/actions-runner-update.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/actions-runner-update.yml b/.github/workflows/actions-runner-update.yml
new file mode 100644
index 0000000..dec9272
--- /dev/null
+++ b/.github/workflows/actions-runner-update.yml
@@ -0,0 +1,31 @@
+name: Regenerate actions-runner image
+
+on:
+ push:
+ branches: [ "master" ]
+ schedule:
+ - cron: "0 0 1,8,15,22 * *"
+
+permissions:
+ pull-requests: write
+ contents: write
+ packages: write
+
+jobs:
+ build-image:
+ runs-on: alrest-x
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Log into registry
+ if: github.event_name != 'pull_request'
+ uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
+ with:
+ registry: ghcr.io
+ username: xe
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: "Build/deploy docker image"
+ run: |
+ cd kube/runner-ci
+ ./build.sh