Skip to content

[SRE-4238] Use Github Actions to test and release multi-platform docker image #1

[SRE-4238] Use Github Actions to test and release multi-platform docker image

[SRE-4238] Use Github Actions to test and release multi-platform docker image #1

Workflow file for this run

name: test-docker-image
on:
pull_request:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare image metadata
id: metadata
uses: docker/metadata-action@v5
with:
images: zappi/nginx
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Test multi-arch building of image
uses: docker/build-push-action@v6
with:
cache-from: type=gha
cache-to: type=gha,mode=max
context: .
labels: ${{ steps.metadata.outputs.labels }}
platforms: linux/amd64,linux/arm64
push: false
tags: ${{ steps.metadata.outputs.tags }}