-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflows for building and pushing container image
- Loading branch information
Showing
34 changed files
with
257 additions
and
535 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,39 @@ | ||
name: Build and push container image | ||
|
||
env: | ||
IMAGE_NAME: "rapidast" | ||
IMAGE_TAGS: "${{ github.sha }}" | ||
IMAGE_REGISTRY: quay.io/redhatproductsecurity | ||
IMAGE_REGISTRY_USER: ${{ secrets.IMAGE_REGISTRY_USER }} | ||
IMAGE_REGISTRY_PASSWORD: ${{ secrets.IMAGE_REGISTRY_PASSWORD }} | ||
|
||
on: | ||
push: | ||
branches: ["development", "main"] | ||
|
||
jobs: | ||
|
||
build-and-push: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
# https://github.com/redhat-actions/buildah-build#readme | ||
steps: | ||
- name: Build container image | ||
uses: redhat-actions/buildah-build@v2 | ||
with: | ||
image: ${{ env.IMAGE_NAME }} | ||
tags: ${{ env.IMAGE_TAGS }} | ||
dockerfiles: | | ||
./containerize/Containerfile | ||
# https://github.com/redhat-actions/push-to-registry#readme | ||
- name: Push to registry | ||
id: push-image | ||
uses: redhat-actions/push-to-registry@v2 | ||
with: | ||
image: ${{ steps.build-image.outputs.image }} | ||
tags: ${{ steps.build-image.outputs.tags }} | ||
registry: ${{ env.IMAGE_REGISTRY }} | ||
username: ${{ env.IMAGE_REGISTRY_USER }} | ||
password: ${{ env.IMAGE_REGISTRY_PASSWORD }} |
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,25 @@ | ||
name: Build container image | ||
|
||
env: | ||
IMAGE_NAME: "rapidast" | ||
IMAGE_TAGS: "${{ github.sha }}" | ||
|
||
on: | ||
pull_request: | ||
branches: ["development", "main"] | ||
|
||
jobs: | ||
|
||
build-image: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
# https://github.com/redhat-actions/buildah-build#readme | ||
steps: | ||
- name: Build container image | ||
uses: redhat-actions/buildah-build@v2 | ||
with: | ||
image: ${{ env.IMAGE_NAME }} | ||
tags: ${{ env.IMAGE_TAGS }} | ||
dockerfiles: | | ||
./containerize/Containerfile |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: RapiDAST | ||
name: Run tests | ||
|
||
on: | ||
push: | ||
|
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
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
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
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
Oops, something went wrong.