Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/build-multiarch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and Push Multi-Arch Image
on: [push]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this setting, I believe the workflow will run on any pushes, in any branches. That's probably not what we want. If we were only testing, that would be fine. But we're pushing to Quay, so we want it to run only on successful merges. I believe if you add branches: [main] here we should be good.


jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Log in to Quay using Podman
uses: redhat-actions/podman-login@v1
with:
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_TOKEN }}
registry: quay.io

- name: Build Multi-Arch Image
run: make build

- name: Push Multi-Arch Image
run: make push
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

IMAGE_NAME = quay.io/skupper/tcp-go-echo
PLATFORM = linux/amd64,linux/arm64
PLATFORM = linux/amd64,linux/arm64,linux/s390x

# The option below creates the images in the docker format.
# That is required for their use with Openshift 3.11
Expand Down