-
-
Notifications
You must be signed in to change notification settings - Fork 1
ci(template): Publish to quay.io #584
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -173,7 +173,7 @@ jobs: | |||||
| build-arguments: VERSION=${{ steps.version.outputs.OPERATOR_VERSION }} | ||||||
| container-file: docker/Dockerfile | ||||||
|
|
||||||
| - name: Publish Container Image | ||||||
| - name: Publish Container Image (oci.stackable.tech) | ||||||
| if: ${{ !github.event.pull_request.head.repo.fork }} | ||||||
| uses: stackabletech/actions/publish-image@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0 | ||||||
| with: | ||||||
|
|
@@ -184,6 +184,17 @@ jobs: | |||||
| image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }} | ||||||
| source-image-uri: ${{ steps.build.outputs.image-manifest-uri }} | ||||||
|
|
||||||
| - name: Publish Container Image (quay.io) | ||||||
| if: ${{ !github.event.pull_request.head.repo.fork }} | ||||||
| uses: stackabletech/actions/publish-image@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0 | ||||||
| with: | ||||||
| image-registry-uri: quay.io | ||||||
| image-registry-username: stackable+robot_sdp_github_action_build # Doesn't exist yet | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't forget to create this
Suggested change
|
||||||
| image-registry-password: ${{ secrets.QUAY_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }} # Doesn't exist yet | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| image-repository: stackable/sdp/${{ env.OPERATOR_NAME }} | ||||||
| image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }} | ||||||
| source-image-uri: ${{ steps.build.outputs.image-manifest-uri }} | ||||||
|
|
||||||
| publish-index-manifest: | ||||||
| name: Publish/Sign ${{ needs.build-container-image.outputs.operator-version }} Index | ||||||
| if: | | ||||||
|
|
@@ -202,7 +213,7 @@ jobs: | |||||
| with: | ||||||
| persist-credentials: false | ||||||
|
|
||||||
| - name: Publish and Sign Image Index | ||||||
| - name: Publish and Sign Image Index (oci.stackable.tech) | ||||||
| uses: stackabletech/actions/publish-image-index-manifest@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0 | ||||||
| with: | ||||||
| image-registry-uri: oci.stackable.tech | ||||||
|
|
@@ -211,6 +222,15 @@ jobs: | |||||
| image-repository: sdp/${{ env.OPERATOR_NAME }} | ||||||
| image-index-manifest-tag: ${{ needs.build-container-image.outputs.operator-version }} | ||||||
|
|
||||||
| - name: Publish and Sign Image Index (quay.io) | ||||||
| uses: stackabletech/actions/publish-image-index-manifest@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0 | ||||||
| with: | ||||||
| image-registry-uri: quay.io | ||||||
| image-registry-username: stackable+robot_sdp_github_action_build # Doesn't exist yet | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| image-registry-password: ${{ secrets.QUAY_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }} # Doesn't exist yet | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| image-repository: stackable/sdp/${{ env.OPERATOR_NAME }} | ||||||
| image-index-manifest-tag: ${{ needs.build-container-image.outputs.operator-version }} | ||||||
|
|
||||||
| publish-helm-chart: | ||||||
| name: Package/Publish ${{ needs.build-container-image.outputs.operator-version }} Helm Chart | ||||||
| if: | | ||||||
|
|
@@ -229,7 +249,7 @@ jobs: | |||||
| persist-credentials: false | ||||||
| submodules: recursive | ||||||
|
|
||||||
| - name: Package, Publish, and Sign Helm Chart | ||||||
| - name: Package, Publish, and Sign Helm Chart (coi.stackable.tech) | ||||||
| uses: stackabletech/actions/publish-helm-chart@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0 | ||||||
| with: | ||||||
| chart-registry-uri: oci.stackable.tech | ||||||
|
|
@@ -241,6 +261,18 @@ jobs: | |||||
| app-version: ${{ needs.build-container-image.outputs.operator-version }} | ||||||
| publish-and-sign: ${{ !github.event.pull_request.head.repo.fork }} | ||||||
|
|
||||||
| - name: Package, Publish, and Sign Helm Chart (quay.io) | ||||||
| uses: stackabletech/actions/publish-helm-chart@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0 | ||||||
| with: | ||||||
| chart-registry-uri: quay.io | ||||||
| chart-registry-username: stackable+robot_sdp_charts_github_action_build # Doesn't exist yet | ||||||
| chart-registry-password: ${{ secrets.QUAY_ROBOT_SDP_CHARTS_GITHUB_ACTION_BUILD_SECRET }} # Doesn't exist yet | ||||||
| chart-repository: stackable/sdp-charts | ||||||
| chart-directory: deploy/helm/${{ env.OPERATOR_NAME }} | ||||||
| chart-version: ${{ needs.build-container-image.outputs.operator-version }} | ||||||
| app-version: ${{ needs.build-container-image.outputs.operator-version }} | ||||||
| publish-and-sign: ${{ !github.event.pull_request.head.repo.fork }} | ||||||
|
|
||||||
| openshift-preflight-check: | ||||||
| name: Run OpenShift Preflight Check for ${{ needs.build-container-image.outputs.operator-version }}-${{ matrix.arch }} | ||||||
| if: | | ||||||
|
|
@@ -259,12 +291,18 @@ jobs: | |||||
| - arm64 | ||||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - name: Run OpenShift Preflight Check | ||||||
| - name: Run OpenShift Preflight Check (oci.stackable.tech) | ||||||
| uses: stackabletech/actions/run-openshift-preflight@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0 | ||||||
| with: | ||||||
| image-index-uri: oci.stackable.tech/sdp/${{ env.OPERATOR_NAME }}:${{ needs.build-container-image.outputs.operator-version }} | ||||||
| image-architecture: ${{ matrix.arch }} | ||||||
|
|
||||||
| - name: Run OpenShift Preflight Check (quay.io) | ||||||
| uses: stackabletech/actions/run-openshift-preflight@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0 | ||||||
| with: | ||||||
| image-index-uri: quay.io/stackable/sdp/${{ env.OPERATOR_NAME }}:${{ needs.build-container-image.outputs.operator-version }} | ||||||
| image-architecture: ${{ matrix.arch }} | ||||||
|
|
||||||
| # This job is a required check in GitHub Settings for this repository. | ||||||
| # It saves us having to list many required jobs, or work around dynamically | ||||||
| # named jobs (since there is no concept of required settings). | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| # Values overlay for chart packages published to quay.io. | ||
| image: | ||
| registry: quay.io | ||
| repository: stackable/sdp/{[ operator.name }] |
Uh oh!
There was an error while loading. Please reload this page.