Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@ concurrency:

on:
workflow_dispatch:
pull_request:
branches:
- main
- master
- v[0-9]+
- v[0-9]+.[0-9]+
- cryostat-v[0-9]+.[0-9]+
- go-*
push:
branches:
- main
- master
- v[0-9]+
- v[0-9]+.[0-9]+
- cryostat-v[0-9]+.[0-9]+
- go-*
tags:
- '*'

Expand All @@ -27,9 +36,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install qemu
continue-on-error: false
if: github.event_name != 'pull_request'
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
Expand All @@ -55,10 +65,10 @@ jobs:
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.CI_IMG }}
archs: amd64, arm64
tags: ${{ github.ref_name }} ${{ github.ref == 'refs/heads/main' && 'latest' || '' }} ${{ env.DATE_TAG }} ${{ steps.check-branch.outputs.image-tag }} ${{ steps.check-commit.outputs.image-tag }} ${{ steps.check-commit.outputs.image-tag-patch }} ${{ steps.check-commit.outputs.image-tag-release }}
archs: ${{ github.event_name == 'pull_request' && 'amd64' || 'amd64, arm64' }}
tags: ${{ github.event_name != 'pull_request' && github.ref_name || '' }} ${{ github.ref == 'refs/heads/main' && 'latest' || '' }} ${{ env.DATE_TAG }} ${{ steps.check-branch.outputs.image-tag }} ${{ steps.check-commit.outputs.image-tag }} ${{ steps.check-commit.outputs.image-tag-patch }} ${{ steps.check-commit.outputs.image-tag-release }}
containerfiles: |
./Containerfile
./Dockerfile
- name: Push to quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
Expand All @@ -68,7 +78,7 @@ jobs:
registry: ${{ env.CI_REGISTRY }}
username: ${{ env.CI_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
if: ${{ github.repository_owner == 'cryostatio' }}
if: ${{ github.repository_owner == 'cryostatio' && github.event_name != 'pull_request' }}
- name: Print image URL
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
if: ${{ github.repository_owner == 'cryostatio' }}
if: ${{ github.repository_owner == 'cryostatio' && github.event_name != 'pull_request' }}
Loading