github actions: build OCI images that contin both amd64 and armv7
- ref. https://docs.docker.com/engine/reference/commandline/buildx_build/#platform - ref. https://docs.docker.com/build/ci/github-actions/multi-platform/ - replaces https://github.com/shaarli/Shaarli/pull/1496 - make docker image name configurable through CI variables for easier testing
This commit is contained in:
parent
9c9d6298bf
commit
fd4379992d
2 changed files with 6 additions and 4 deletions
5
.github/workflows/docker-latest.yml
vendored
5
.github/workflows/docker-latest.yml
vendored
|
@ -35,8 +35,9 @@ jobs:
|
|||
with:
|
||||
context: .
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm/v7
|
||||
tags: |
|
||||
shaarli/shaarli:latest
|
||||
ghcr.io/shaarli/shaarli:latest
|
||||
${{ secrets.DOCKER_IMAGE }}:latest
|
||||
ghcr.io/${{ secrets.DOCKER_IMAGE }}:latest
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
5
.github/workflows/docker-tags.yml
vendored
5
.github/workflows/docker-tags.yml
vendored
|
@ -35,8 +35,9 @@ jobs:
|
|||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: true
|
||||
platforms: linux/amd64,linux/arm/v7
|
||||
tags: |
|
||||
shaarli/shaarli:${{ env.REF }}
|
||||
ghcr.io/shaarli/shaarli:${{ env.REF }}
|
||||
${{ secrets.DOCKER_IMAGE }}:${{ env.REF }}
|
||||
ghcr.io/${{ secrets.DOCKER_IMAGE }}:${{ env.REF }}
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
Loading…
Reference in a new issue