Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
fix: replace pr- with next- prefix; remove unneeded comments (#107)
Browse files Browse the repository at this point in the history
Signed-off-by: RHDH Build (rhdh-bot) <rhdh-bot@redhat.com>
Co-authored-by: RHDH Build (rhdh-bot) <rhdh-bot@redhat.com>
  • Loading branch information
nickboldt and rhdh-bot authored Dec 21, 2023
1 parent 1b1e961 commit 0307cc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/next-docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,14 @@ jobs:
imageTags: |
type=raw,value=next
type=sha,prefix=next-
# to autodelete PR image tags, set an expiry date
imageLabels: quay.expires-after=14d
push: true
dockerfile: docker/Dockerfile

- name: Adjust operator image and tag in CSV
run: |
sed -r -e "s#(image: +)quay.io/.+operator.+#\1quay.io/janus/operator:pr-${{ env.SHORT_SHA }}#g" -i bundle/manifests/backstage-operator.clusterserviceversion.yaml
echo "Operator in CSV changed to: quay.io/janus/operator:pr-${{ env.SHORT_SHA }}"
sed -r -e "s#(image: +)quay.io/.+operator.+#\1quay.io/janus/operator:next-${{ env.SHORT_SHA }}#g" -i bundle/manifests/backstage-operator.clusterserviceversion.yaml
echo "Operator in CSV changed to: quay.io/janus/operator:next-${{ env.SHORT_SHA }}"
- name: Build and Push operator-bundle image
uses: ./.github/actions/docker-build
with:
Expand All @@ -87,7 +86,6 @@ jobs:
imageTags: |
type=raw,value=next
type=sha,prefix=next-
# to autodelete PR image tags, set an expiry date
imageLabels: quay.expires-after=14d
push: true
dockerfile: docker/bundle.Dockerfile
Expand All @@ -98,8 +96,8 @@ jobs:
OS=$(go env GOOS) && ARCH=$(go env GOARCH) && \
curl -sSLo /tmp/opm https://github.com/operator-framework/operator-registry/releases/download/v1.33.0/${OS}-${ARCH}-opm && chmod +x /tmp/opm
/tmp/opm index add --container-tool docker --mode semver \
--tag operator-catalog:pr-${{ env.SHORT_SHA }} \
--bundles quay.io/janus/operator-bundle:pr-${{ env.SHORT_SHA }} --generate
--tag operator-catalog:next-${{ env.SHORT_SHA }} \
--bundles quay.io/janus/operator-bundle:next-${{ env.SHORT_SHA }} --generate
- name: Build and Push operator-catalog image
uses: ./.github/actions/docker-build
with:
Expand All @@ -114,7 +112,6 @@ jobs:
imageTags: |
type=raw,value=next
type=sha,prefix=next-
# to autodelete PR image tags, set an expiry date
imageLabels: quay.expires-after=14d
push: true
dockerfile: index.Dockerfile
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/pr-docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:
imageTags: |
type=ref,prefix=pr-,event=pr
type=ref,prefix=pr-,suffix=-${{ env.SHORT_SHA }},event=pr
# to autodelete PR image tags, set an expiry date
imageLabels: quay.expires-after=14d
push: true
dockerfile: docker/Dockerfile
Expand All @@ -89,7 +88,6 @@ jobs:
imageTags: |
type=ref,prefix=pr-,event=pr
type=ref,prefix=pr-,suffix=-${{ env.SHORT_SHA }},event=pr
# to autodelete PR image tags, set an expiry date
imageLabels: quay.expires-after=14d
push: true
dockerfile: docker/bundle.Dockerfile
Expand All @@ -116,7 +114,6 @@ jobs:
imageTags: |
type=ref,prefix=pr-,event=pr
type=ref,prefix=pr-,suffix=-${{ env.SHORT_SHA }},event=pr
# to autodelete PR image tags, set an expiry date
imageLabels: quay.expires-after=14d
push: true
dockerfile: index.Dockerfile
Expand Down

0 comments on commit 0307cc1

Please sign in to comment.