-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build container images and push to quay Signed-off-by: Joe Talerico <[email protected]>
- Loading branch information
Joe Talerico
committed
Jan 18, 2024
1 parent
659c0ef
commit 85f70dc
Showing
1 changed file
with
50 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,50 @@ | ||
name: Build and Push Image | ||
on: [ push ] | ||
|
||
jobs: | ||
build: | ||
name: Build and push image | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build Frontend Image | ||
id: build-front | ||
uses: redhat-actions/buildah-build@v2 | ||
with: | ||
image: frontend | ||
context: frontend | ||
tags: latest ${{ github.sha }} | ||
containerfiles: | | ||
./frontend/frontend.containerfile | ||
- name: Push frontend image to quay.io | ||
id: push-front-to-quay | ||
uses: redhat-actions/push-to-registry@v2 | ||
with: | ||
image: ${{ steps.build-front.outputs.image }} | ||
tags: ${{ steps.build-front.outputs.tags }} | ||
registry: quay.io/cloud-bulldozer | ||
username: ${{ secrets.QUAY_USER }} | ||
password: ${{ secrets.QUAY_TOKEN }} | ||
|
||
- name: Build Backend Image | ||
id: build-back | ||
uses: redhat-actions/buildah-build@v2 | ||
with: | ||
image: backend | ||
context: backend | ||
tags: latest ${{ github.sha }} | ||
containerfiles: | | ||
./backend/backend.containerfile | ||
- name: Push backend image to quay.io | ||
id: push-back-to-quay | ||
uses: redhat-actions/push-to-registry@v2 | ||
with: | ||
image: ${{ steps.build-back.outputs.image }} | ||
tags: ${{ steps.build-back.outputs.tags }} | ||
registry: quay.io/cloud-bulldozer | ||
username: ${{ secrets.QUAY_USER }} | ||
password: ${{ secrets.QUAY_TOKEN }} |