Skip to content

Commit

Permalink
Added ARM build
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Sep 9, 2024
1 parent ee2f125 commit 05b3cdd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name: Build - Private
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
timeout-minutes: 20

steps:
- name: "Check out code"
Expand Down Expand Up @@ -114,6 +114,9 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=sha,format=long
- name: "Set up QEMU"
uses: docker/setup-qemu-action@v3

- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3

Expand All @@ -125,6 +128,7 @@ jobs:
DOCKER_FILES_BASE_PATH=docker/prod/
file: docker/prod/Dockerfile
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down
28 changes: 24 additions & 4 deletions .github/workflows/build-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ name: Build - Public
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
packages: write
contents: read
attestations: write
id-token: write
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
timeout-minutes: 60

steps:
- name: "Check out code"
Expand Down Expand Up @@ -48,18 +58,28 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: "Login to GitHub Container Registry"
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Docker meta"
id: "meta"
uses: docker/metadata-action@v5
with:
images: solidtime/solidtime
images: |
solidtime/solidtime
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: "Set up QEMU"
uses: docker/setup-qemu-action@v3

- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3

Expand All @@ -70,7 +90,7 @@ jobs:
file: docker/prod/Dockerfile
build-args: |
DOCKER_FILES_BASE_PATH=docker/prod/
platforms: linux/amd64
platforms: ${{ matrix.platform }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 05b3cdd

Please sign in to comment.