Skip to content

Commit

Permalink
chore: use arm64 runners for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 24, 2025
1 parent f7311fd commit 732d9d3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 9 deletions.
47 changes: 43 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,15 @@ jobs:
max_attempts: 3
command: mise run test
dockerhub:
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
tag_suffix: amd64
- os: ubuntu-24.04-arm
tag_suffix: arm64
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -113,7 +121,7 @@ jobs:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
username: jdxcode
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
Expand All @@ -125,7 +133,38 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
#platforms: linux/amd64,linux/arm64
push: true
tags: jdxcode/mise:latest,jdxcode/mise:${{ github.ref_name }}
tags: jdxcode/mise:${{ github.ref_name }}-${{ matrix.platform.tag_suffix }}
labels: ${{ steps.meta.outputs.labels }}
# TODO: remove this when official docker/build-push-action supports arm64
dockerhub-publish:
runs-on: ubuntu-latest
needs: [dockerhub]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: jdxcode
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: Noelware/[email protected]
with:
inputs: jdxcode/mise:${{ github.ref_name }}
images: jdxcode/mise:${{ github.ref_name }}-amd64,jdxcode/mise:${{ github.ref_name }}-arm64
- uses: Noelware/[email protected]
with:
inputs: jdxcode/mise:latest
images: jdxcode/mise:${{ github.ref_name }}-amd64,jdxcode/mise:${{ github.ref_name }}-arm64
- uses: Noelware/[email protected]
with:
inputs: ghcr.io/jdx/mise:${{ github.ref_name }}
images: jdxcode/mise:${{ github.ref_name }}-amd64,jdxcode/mise:${{ github.ref_name }}-arm64
- uses: Noelware/[email protected]
with:
inputs: ghcr.io/jdx/mise:latest
images: jdxcode/mise:${{ github.ref_name }}-amd64,jdxcode/mise:${{ github.ref_name }}-arm64
7 changes: 2 additions & 5 deletions mise.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[tools.actionlint]
version = "1.7.6"
version = "1.7.7"
backend = "aqua:rhysd/actionlint"

[tools.actionlint.checksums]
actionlint-linux-x86_64 = "sha256:bf567ce887b8b045fdd6001411aea1971e90a49e4f5172801fb648902843c9ec"
actionlint-macos-aarch64 = "sha256:baa69aa6ae140310d9d86127d916abd42cd2ad446aef0a04f2a7fe7f54da7d67"
"actionlint_1.7.6_darwin_arm64.tar.gz" = "sha256:9a7c9cb2b627bb137ef68742eead2dd5b78f3ddc44876e84c37d323ba28b4710"
"actionlint_1.7.6_linux_amd64.tar.gz" = "sha256:5d1a70d9de15fee5371e6f9e20cc29b284e814d6ee1b882f9749e91caf716eba"
"actionlint_1.7.7_darwin_arm64.tar.gz" = "sha256:2693315b9093aeacb4ebd91a993fea54fc215057bf0da2659056b4bc033873db"

[tools.bun]
version = "1.1.44"
Expand Down

0 comments on commit 732d9d3

Please sign in to comment.