File tree 4 files changed +13
-3
lines changed
4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 25
25
- name : build container image
26
26
run : |
27
27
VERSION='${{ steps.image_tag.outputs.tag }}' make docker-build
28
- VERSION='${{ steps.image_tag.outputs.tag }}' make bundle-build
29
28
- name : push images to quay
30
29
run : |
31
30
VERSION='${{ steps.image_tag.outputs.tag }}' make docker-push
32
- VERSION='${{ steps.image_tag.outputs.tag }}' make bundle-push
33
31
- name : success slack notification
34
32
uses : rtCamp/action-slack-notify@v2
35
33
env :
Original file line number Diff line number Diff line change @@ -104,9 +104,16 @@ jobs:
104
104
- uses : actions/checkout@v2
105
105
with :
106
106
ref : ${{ github.event.inputs.commit_ref }}
107
+ - name : install-yq
108
+ run : |
109
+ echo "installing yq..."
110
+ curl -L https://github.com/mikefarah/yq/releases/download/v4.13.5/yq_linux_amd64 -o /usr/local/bin/yq && chmod +x /usr/local/bin/yq
111
+ echo "yq installed"
107
112
- name : build
108
113
run : |
109
114
VERSION=${{ github.event.inputs.tag }} make docker-build
115
+ rm -rf bundle/
116
+ VERSION=${{ github.event.inputs.tag }} make bundle
110
117
VERSION=${{ github.event.inputs.tag }} make bundle-build
111
118
- run : echo "${{ secrets.QUAY_BOT_PASSWORD }}" | docker login --username "${{ secrets.QUAY_BOT_USERNAME }}" --password-stdin quay.io
112
119
- name : push the image to quay
Original file line number Diff line number Diff line change @@ -182,6 +182,11 @@ endif
182
182
183
183
.PHONY : bundle
184
184
bundle : kustomize operator-sdk # # Generate bundle manifests and metadata, then validate generated files.
185
+ @echo ' changing the image tag to ' ${VERSION} ' in "containerImage" field in the CSV using yq'
186
+ @cat config/manifests/bases/move2kube-operator.clusterserviceversion.yaml
187
+ yq eval --exit-status --inplace " .metadata.annotations.containerImage=\" quay.io/konveyor/move2kube-operator:${VERSION} \" " config/manifests/bases/move2kube-operator.clusterserviceversion.yaml
188
+ @echo ' after editting the CSV'
189
+ @cat config/manifests/bases/move2kube-operator.clusterserviceversion.yaml
185
190
$(OPERATOR_SDK ) generate kustomize manifests -q
186
191
cd config/manager && $(KUSTOMIZE ) edit set image controller=$(IMG )
187
192
$(KUSTOMIZE ) build config/manifests | $(OPERATOR_SDK ) generate bundle $(BUNDLE_GEN_FLAGS )
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ metadata:
80
80
capabilities : Seamless Upgrades
81
81
categories : Modernization & Migration
82
82
containerImage : quay.io/konveyor/move2kube-operator:v0.3.9
83
- createdAt : " 2023-08-23T19:28:57Z "
83
+ createdAt : " 2023-08-24T14:46:14Z "
84
84
description : Konveyor Move2Kube is an open source tool that helps migrate your
85
85
app to run on Kubernetes/Openshift.
86
86
operators.operatorframework.io/builder : operator-sdk-v1.31.0
You can’t perform that action at this time.
0 commit comments