-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
operator: obtain default image tag from label (#976)
- obtain default image tag from label - skip all previous versions for snapshot and CI builds - add host name to info log message - add namespace variable to generate K8s resources - attach generate K8s resource to builds and releases --------- Signed-off-by: Michael Edgar <[email protected]>
- Loading branch information
Showing
6 changed files
with
48 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,9 @@ jobs: | |
export QUARKUS_CONTAINER_IMAGE_ADDITIONAL_TAGS=latest | ||
export GIT_REVISION=$(git rev-parse --short release) | ||
# Build and push the release images using the commit tagged in `release:prepare` | ||
mvn -B -P container-image release:perform --no-transfer-progress '-Drelease.arguments=-Dquarkus.docker.buildx.platform=linux/amd64,linux/arm64' | ||
mvn -B -P container-image release:perform --no-transfer-progress \ | ||
-Dquarkus.kubernetes.namespace='$${NAMESPACE}' \ | ||
'-Drelease.arguments=-Dquarkus.docker.buildx.platform=linux/amd64,linux/arm64' | ||
- name: Login to Quay | ||
uses: docker/login-action@v3 | ||
|
@@ -135,8 +137,17 @@ jobs: | |
milestone-title: ${{steps.metadata.outputs.current-version}} | ||
milestone-next: ${{steps.metadata.outputs.next-version}} | ||
|
||
- name: Image Update | ||
uses: renovatebot/[email protected] | ||
- name: Prepare Operator Resources | ||
run: | | ||
cat operator/target/kubernetes/consoles.console.streamshub.github.com-v1.yml \ | ||
operator/target/kubernetes/kubernetes.yml \ | ||
> operator/target/console-operator-${{ steps.metadata.outputs.current-version }}.yaml | ||
- uses: meeDamian/[email protected] | ||
name: Attach Operator Resources to Release | ||
with: | ||
configurationFile: .github/gitops-config.json | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.metadata.outputs.current-version }} | ||
allow_override: true | ||
gzip: false | ||
files: operator/target/console-operator-${{ steps.metadata.outputs.current-version }}.yaml |
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
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
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
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