Skip to content

Commit 9567e4c

Browse files
committed
add containerImage
1 parent 926d688 commit 9567e4c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/operator.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
password: ${{ secrets.QUAY_PASSWORD }}
5252
registry: quay.io
5353

54+
- name: install yq
55+
run: |
56+
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq
57+
chmod +x /usr/local/bin/yq
58+
5459
- name: install operator-sdk
5560
run: |
5661
export OPERATOR_SDK_DL_URL=https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/operator-sdk/${{ env.OPERATOR_OCP_VERSION }}/operator-sdk-${{ env.OPERATOR_SDK_VERSION }}-ocp-linux-x86_64.tar.gz
@@ -71,6 +76,8 @@ jobs:
7176
make bundle USE_IMAGE_DIGESTS=true
7277
echo -e "\n # Annotations for catalog\n com.redhat.openshift.versions: \"${{ env.SUPPORTED_OCP_VERSIONS }}\"" >> bundle/metadata/annotations.yaml
7378
echo -e "\n# Labels for catalog\nLABEL com.redhat.openshift.versions=\"${{ env.SUPPORTED_OCP_VERSIONS }}\"" >> bundle.Dockerfile
79+
export CONTAINER_IMAGE=$(cat cluster-relocation-operator.clusterserviceversion.yaml | yq '.spec.relatedImages | map(select(.name == "manager")) | .[0].image')
80+
yq -i e ".metadata.annotations.containerImage = \"${CONTAINER_IMAGE}\"" bundle/manifests/cluster-relocation-operator.clusterserviceversion.yaml
7481
7582
- name: Build operator bundle
7683
run: |

config/manifests/bases/cluster-relocation-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ metadata:
77
categories: "Integration & Delivery"
88
repository: https://github.com/RHsyseng/cluster-relocation-operator
99
operators.openshift.io/infrastructure-features: '["disconnected"]'
10+
support: RHsyseng
1011
name: cluster-relocation-operator.v0.0.0
1112
namespace: placeholder
1213
spec:

0 commit comments

Comments
 (0)