aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/actions-runner-update.yml
blob: 9870428cfe7c99d488b763f1af6884cdde9cbf46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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