forked from hiroksarker/statuz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/statuzproj/statuz
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |