👻 add workflow to run sanity tests on branches #165
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
name: 'Build and Push Multi-Arch Image' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
- 'release-*' | |
tags: | |
- 'v*' | |
concurrency: | |
group: march-build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
image-build: | |
uses: konveyor/release-tools/.github/workflows/build-push-images.yaml@main | |
with: | |
registry: "quay.io/konveyor" | |
image_name: "kantra" | |
containerfile: "./Dockerfile" | |
architectures: '[ "amd64", "arm64" ]' | |
extra-args: | | |
--build-arg RULESETS_REF=${{ github.ref_name }} --build-arg VERSION=${{ github.ref_name == 'main' && 'latest' || github.ref_name }} --build-arg BUILD_COMMIT=${{ github.sha }} | |
secrets: | |
registry_username: ${{ secrets.QUAY_PUBLISH_ROBOT }} | |
registry_password: ${{ secrets.QUAY_PUBLISH_TOKEN }} |