From e0e5152669b9f7402a2c46d18f91ffc2cece249f Mon Sep 17 00:00:00 2001 From: Max Albrecht <1@178.is> Date: Thu, 30 May 2024 19:24:58 +0200 Subject: [PATCH] ci: build docker images for x86 and arm processors fixes https://github.com/McPringle/apus/issues/83 Signed-off-by: Max Albrecht <1@178.is> --- .github/workflows/docker-nightly.yml | 7 ++++++- .github/workflows/docker-release.yml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-nightly.yml b/.github/workflows/docker-nightly.yml index ff74cba..d754822 100644 --- a/.github/workflows/docker-nightly.yml +++ b/.github/workflows/docker-nightly.yml @@ -3,7 +3,7 @@ name: Docker Nightly on: # This can be used to automatically publish nightlies at UTC nighttime schedule: - - cron: '0 1 * * *' # run at 1 AM UTC + - cron: "0 1 * * *" # run at 1 AM UTC # This can be used to allow manually triggering nightlies from the web interface workflow_dispatch: @@ -50,15 +50,18 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v4 + - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - id: lowercase-repo name: Lowercase repository name run: | echo "repository=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT + - name: Build and push Docker image uses: docker/build-push-action@v5 with: @@ -66,6 +69,8 @@ jobs: file: ./Dockerfile push: true tags: ${{ steps.lowercase-repo.outputs.repository }}:nightly + platforms: linux/amd64,linux/arm64 + - name: Docker Hub Description uses: peter-evans/dockerhub-description@v4 with: diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 06b52db..4ae0590 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -23,6 +23,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push Docker image uses: docker/build-push-action@v5 with: @@ -30,3 +31,4 @@ jobs: file: ./Dockerfile push: true tags: mcpringle/apus:${{ github.event.release.tag_name }} + platforms: linux/amd64,linux/arm64