-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.3 KB
/
ubuntu-24.04-arm.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
name: ubuntu-24.04-arm
on:
workflow_dispatch
jobs:
build-docker-image:
runs-on: sprinters:aws/846680362832:m8g.8xlarge:minimal:temp=1024
env:
DOCKERFILE_NAME: Dockerfile-ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- 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.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version from Dockerfile
run: |
VERSION=$(grep 'ARG RUNNER_IMAGE_VERSION=' "$DOCKERFILE_NAME" | cut -d '=' -f2)
echo "RUNNER_IMAGE_VERSION: ${VERSION}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ${{ env.DOCKERFILE_NAME }}
build-args: RUNNER_IMAGE_VERSION=${{ env.VERSION }}
platforms: linux/arm64
push: true
tags: |
ghcr.io/sprinters-sh/sprinters-images-ubuntu-24.04-arm:latest
ghcr.io/sprinters-sh/sprinters-images-ubuntu-24.04-arm:${{ env.VERSION }}