Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/statuzproj/statuz
Browse files Browse the repository at this point in the history
  • Loading branch information
timam committed Oct 2, 2023
2 parents d29b860 + a9ec6ff commit 62f7c03
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/quay.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build and Push Image to quay.io

on:
push:
tags:
- 'v*'

jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/386
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64/v8

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build watcher image
id: build-watcher-image
uses: redhat-actions/buildah-build@v2
with:
image: watcher
tags: latest ${{ github.ref_name }}
containerfiles: svc/watcher/Dockerfile

- name: Build genie image
id: build-genie-image
uses: redhat-actions/buildah-build@v2
with:
image: genie
tags: latest ${{ github.ref_name }}
containerfiles: svc/genie/Dockerfile

- name: Push watcher image to quay.io
id: push-watcher-image
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-watcher-image.outputs.image }}
tags: ${{ steps.build-watcher-image.outputs.tags }}
registry: ${{ vars.QUAY_REGISTRY }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Push genie image to quay.io
id: push-genie-image
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-genie-image.outputs.image }}
tags: ${{ steps.build-genie-image.outputs.tags }}
registry: ${{ vars.QUAY_REGISTRY }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

0 comments on commit 62f7c03

Please sign in to comment.