Skip to content

add platform linux/arm64 to docker/build-push gh action #12

add platform linux/arm64 to docker/build-push gh action

add platform linux/arm64 to docker/build-push gh action #12

Workflow file for this run

name: Build and push release Docker image
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
mapbender/mapbender:latest
mapbender/mapbender:${{ github.ref_name }}