CI: build & publish arm64 binaries 💚

v5 equivalent: 76c5885
This commit is contained in:
Jannis R 2023-09-19 11:00:40 +02:00
parent 11aa62d829
commit 2339f1752a
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -26,6 +26,8 @@ jobs:
steps: steps:
- name: check out the repo - name: check out the repo
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: set up QEMU
uses: docker/setup-qemu-action@v3
- name: configure Docker to use buildx - name: configure Docker to use buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: log in to Docker Hub - name: log in to Docker Hub
@ -38,6 +40,7 @@ jobs:
with: with:
context: . context: .
push: true push: true
platforms: linux/amd64,linux/arm64
tags: | tags: |
derhuerst/db-rest:6 derhuerst/db-rest:6
derhuerst/db-rest:latest derhuerst/db-rest:latest
@ -63,6 +66,7 @@ jobs:
with: with:
context: . context: .
push: true push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{github.repository}}:v6_${{steps.hash.outputs.hash}}_${{steps.datetime.outputs.datetime}} tags: ghcr.io/${{github.repository}}:v6_${{steps.hash.outputs.hash}}_${{steps.datetime.outputs.datetime}}
# https://docs.docker.com/build/ci/github-actions/examples/#github-cache # https://docs.docker.com/build/ci/github-actions/examples/#github-cache
cache-from: type=gha cache-from: type=gha