-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rplevka/gh_action
add a basic GH workflow to build and push container on merge
- Loading branch information
Showing
1 changed file
with
40 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,40 @@ | ||
# Update rekuper image on quay. | ||
name: update_rekuper_image | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
rekuper_container: | ||
name: Update rekuper container image on Quay. | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# do not store the auth token in git config | ||
persist-credentials: false | ||
|
||
- name: Build rekuper image | ||
id: build-image | ||
uses: redhat-actions/buildah-build@v2 | ||
with: | ||
image: rekuper | ||
tags: | ||
- latest | ||
containerfiles: | | ||
./Containerfile | ||
- name: Push rekuper image to quay.io | ||
id: push-to-quay | ||
uses: redhat-actions/push-to-registry@v2 | ||
with: | ||
image: rekuper | ||
tags: ${{ steps.image_tag.outputs.IMAGE_TAG }} | ||
registry: ${{ secrets.QUAY_SERVER }}/${{ secrets.QUAY_NAMESPACE }} | ||
username: ${{ secrets.QUAY_USERNAME }} | ||
password: ${{ secrets.QUAY_PASSWORD }} |