Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set container registry secrets in release pipeline #195

Merged
merged 2 commits into from
Feb 8, 2024
Merged
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
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
Loading