Skip to content

Commit

Permalink
Add Skyscrapers actions-runner image per skyscrapers/platform#1135 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrondelez authored Mar 20, 2024
1 parent 1182714 commit 5406ee7
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-actions-runner-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Actions Runner Image

on:
push:
branches:
- master

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/actions-runner

jobs:
build-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the container to GitHub Container Registry using the latest tag
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
platforms: linux/arm64
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
push: true
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Docker images. Each folder contains the setup for a single image.
The Concourse pipeline to build all images can be found in the
[skyscrapers/ci](https://github.com/skyscrapers/ci) repository.

## actions-runner

This is a Docker image based on the official GitHub Actions runner image. It is used to run GitHub Actions on a self-hosted runner in a Kubernetes cluster.
Our layer adds our most used tools onto the official image.

The image is build with GitHub actions and pushed to the `ghcr.io/skyscrapers/actions-runner` repository.

## packer g10k

This is a Docker image containing the following tools:
Expand Down
17 changes: 17 additions & 0 deletions actions-runner/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0-jammy as build
RUN apt-get update -y \
&& apt-get install -y \
jq \
git \
curl \
unzip \
zip

FROM ghcr.io/actions/actions-runner:latest

COPY --from=build /usr/bin/jq /usr/bin/jq
COPY --from=build /usr/bin/git /usr/bin/git
COPY --from=build /usr/bin/curl /usr/bin/curl
COPY --from=build /usr/bin/unzip /usr/bin/unzip
COPY --from=build /usr/bin/zip /usr/bin/zip
COPY --from=build /usr/lib/ /usr/lib/

0 comments on commit 5406ee7

Please sign in to comment.