Skip to content

Commit

Permalink
Merge pull request #195 from lburgazzoli/release-secrets
Browse files Browse the repository at this point in the history
set container registry secrets in release pipeline
  • Loading branch information
lburgazzoli authored Feb 8, 2024
2 parents 6c1e7bd + 3f5286e commit 9835095
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,11 @@ on:
The supported Openshift version range. This could be a single version, like for example v4.13 or v4.9-v4.13 as a range
required: false
default: v4.13
olm:
required: true
description: |
Define if we are going to release OLM bundle too
type: boolean
latest:
required: true
description: |
Define if we want to tag the image as latest too
type: boolean
secrets:
registry:
required: true
registry-username:
required: true
registry-password:
required: true

jobs:

Expand All @@ -69,9 +57,9 @@ jobs:
- name: "Login to Container registry"
uses: docker/login-action@v3
with:
registry: ${{ secrets.registry }}
username: ${{ secrets.registry-username }}
password: ${{ secrets.registry-password }}
registry: "quay.io"
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Set versions
run: |
export INPUT_VERSION="${{ github.event.inputs.operator_version }}"
Expand All @@ -82,25 +70,20 @@ jobs:
- name: "Set Up Crane"
run: |
make crane
- name: "Build Container image"
- name: "Build Container Image"
run: |
export IMAGE_DIGEST=$(bin/crane digest quay.io/kaotoio/kaoto-app:stable)
export KAOTO_APP_IMAGE="quay.io/kaotoio/kaoto-app@${IMAGE_DIGEST}"
make docker-build
make docker-push
- name: "Tag lates Container image"
- name: "Tag Container Image as latest"
if: ${{ inputs.latest }}
run: |
docker tag quay.io/kaotoio/kaoto-operator:${VERSION} quay.io/kaotoio/kaoto-operator:latest
docker push quay.io/kaotoio/kaoto-operator:latest
- name: "Build OLM bundle"
if: ${{ inputs.olm }}
run: |
make bundle
make bundle-build
make bundle-push
make catalog-build
make catalog-push
- name: Commit
run: |
if [[ `git status --porcelain` ]]; then
Expand Down

0 comments on commit 9835095

Please sign in to comment.