Skip to content

Commit

Permalink
multi-arch builds on github actions workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cho <jason.cho2@ibm.com>
  • Loading branch information
jcho02 committed Nov 6, 2023
1 parent c927115 commit 56b8ad0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# NOTE: set the REGISTRY secret to your own quay.io account in your fork to
# test this workflow!
---
name: Build and Publish Images

on:
workflow_dispatch:
inputs:
tag:
description: 'Image tag. Defaults to 3.0.2'
required: false
default: "3.0.2"

jobs:
build-and-publish:
name: Build and Publish
runs-on: ubuntu-latest
env:
TAG: ${{ github.event.inputs.tag || '3.0.2' }}
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

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

- name: Build and Publish
run: make docker-buildx IMG=quay.io/project-koku/koku-metrics-operator:${{ env.TAG }}

0 comments on commit 56b8ad0

Please sign in to comment.