Skip to content

Commit

Permalink
extract variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Aug 15, 2023
1 parent c4e2193 commit 8751d00
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ on:
- cryostat-v[0-9]+.[0-9]+

env:
CI_OPERATOR_IMG: quay.io/cryostat/cryostat-operator
CI_BUNDLE_IMG: quay.io/cryostat/cryostat-operator-bundle
CI_SCORECARD_IMG: quay.io/cryostat/cryostat-operator-scorecard
CI_USER: cryostat+bot
CI_REGISTRY: quay.io/cryostat
CI_OPERATOR_IMG: $CI_REGISTRY/cryostat-operator
CI_BUNDLE_IMG: $CI_REGISTRY/cryostat-operator-bundle
CI_SCORECARD_IMG: $CI_REGISTRY/cryostat-operator-scorecard
REPOSITORY: ${{ github.event.pull_request.head.repo.full_name }}
REF: ${{ github.event.pull_request.head.ref }}

Expand Down Expand Up @@ -148,9 +150,14 @@ jobs:
if: ${{ github.event_name == 'push' && github.repository_owner == 'cryostatio' }}
steps:
- uses: actions/checkout@v2
- name: Install qemu
continue-on-error: false
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build operator image
run: |
SKIP_TESTS=true PLATFORMS=linux/amd64,linux/arm64 MANIFEST_PUSH=true make oci-buildx
SKIP_TESTS=true PLATFORMS=linux/amd64,linux/arm64 MANIFEST_PUSH=false make oci-buildx
- name: Tag image
id: tag-image
run: |
Expand All @@ -169,8 +176,8 @@ jobs:
with:
image: cryostat-operator
tags: ${{ steps.tag-image.outputs.tags }}
registry: quay.io/cryostat
username: cryostat+bot
registry: ${{ env.CI_REGISTRY }}
username: ${{ env.CI_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Print image URL
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
Expand Down Expand Up @@ -199,8 +206,8 @@ jobs:
with:
image: cryostat-operator-bundle
tags: ${{ steps.tag-image.outputs.tags }}
registry: quay.io/cryostat
username: cryostat+bot
registry: ${{ env.CI_REGISTRY }}
username: ${{ env.CI_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Print image URL
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
Expand Down Expand Up @@ -231,8 +238,8 @@ jobs:
with:
image: cryostat-operator-scorecard
tags: ${{ steps.get-image-tag.outputs.tag }}
registry: quay.io/cryostat
username: cryostat+bot
registry: ${{ env.CI_REGISTRY }}
username: ${{ env.CI_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
if: ${{ steps.check-tag-exists.outputs.exist == 'false' }}
- name: Print image URL
Expand Down

0 comments on commit 8751d00

Please sign in to comment.