Skip to content

Commit

Permalink
ci: build and push images to quay using rh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmann committed Jan 26, 2024
1 parent 8935fda commit 05197c4
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,21 @@ jobs:
with:
name: dist-service
path: service/target/quarkus-app
- name: Build and push
uses: docker/build-push-action@v5
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
push: false
context: .
file: images/sbomer-service/Containerfile
# tags: ${{ steps.meta.outputs.tags }}
#labels: ${{ steps.meta.outputs.labels }}
image: sbomer-service
tags: latest ${{ github.sha }}
containerfiles: |
./images/sbomer-service/Containerfile
- name: Push to Quay
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ secrets.REGISTRY_ORG_STAGE }}
username: ${{ secrets.REGISTRY_USER_STAGE }}
password: ${{ secrets.REGISTRY_PASSWORD_STAGE }}

0 comments on commit 05197c4

Please sign in to comment.