Red Hat Konflux update ovirt-populator #931
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 images | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
workflow_dispatch: | |
jobs: | |
build_push: | |
runs-on: ubuntu-latest | |
env: | |
REGISTRY: quay.io | |
# Set tag 'latest' on main branch | |
REGISTRY_TAG: ${{ (github.head_ref||github.ref_name)=='main' && 'latest' || (github.head_ref||github.ref_name) }} | |
REGISTRY_ORG: kubev2v | |
USE_BAZEL_VERSION: 5.4.0 | |
steps: | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
with: | |
tool-cache: false | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: false | |
swap-storage: false | |
docker-images: false | |
- name: Checkout forklift | |
uses: actions/checkout@v4 | |
- name: Login to quay.io with bot account | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_TOKEN }} | |
- name: Bazel cache | |
id: bazel-cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/bazel | |
key: ${{ runner.os }}-bazel-cache-${{ hashFiles('WORKSPACE') }} | |
- name: Build and push images to quay.io | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
./hack/release-images.sh |