Skip to content

chore(deps): pin dependencies #39

chore(deps): pin dependencies

chore(deps): pin dependencies #39

name: Publish Runner Image
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/actions-runner
RUNNER_VERSION: 2.316.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4
with:
push: ${{ github.event_name == 'push' }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.RUNNER_VERSION}}
build-args: |
RUNNER_VERSION=${{ env.RUNNER_VERSION}}
RUNNER_CONTAINER_HOOKS_VERSION=0.5.0
TARGETOS=linux
TARGETARCH=amd64
DOCKER_VERSION=24.0.6
BUILDX_VERSION=0.11.2
cache-from: type=gha
cache-to: type=gha,mode=max