Adding cross-platform build as part of push steps #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test to see if the Docker build process works | |
# Creates a GitHub release | |
on: | |
push: | |
branches-ignore: | |
- main | |
tags-ignore: # Ensure that we're not running this on our release tags - This will be an actual build. | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
name: Docker | |
jobs: | |
build_docker: | |
name: Test Build | |
runs-on: ubuntu-latest | |
services: | |
registry: | |
image: registry:2 | |
ports: | |
- 5000:5000 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
driver-opts: network=host | |
- name: Build and push to local test registry | |
uses: docker/build-push-action@v6 | |
with: | |
platforms: linux/amd64,linux/arm64,darwin/arm64 | |
push: true | |
tags: localhost:5000/${{github.repository}}:${{github.sha}} |