File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 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
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 : |
Original file line number Diff line number Diff 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
1213spec :
You can’t perform that action at this time.
0 commit comments