File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 40
40
uses : actions/checkout@v4
41
41
with :
42
42
fetch-depth : 0
43
- - name : Update manifests
43
+ - name : Build release manifests
44
44
run : |
45
- # this is quite naive, but i don't think we need more for now
46
- sed -i "s/dev/${TAG}/g" config/default/manager_image_patch.yaml
45
+ TAG=${{ env.TAG }} make manifest-modification
47
46
kustomize build config/default/ > infrastructure-components.yaml
48
47
- name : Release
49
48
uses : softprops/action-gh-release@v2
Original file line number Diff line number Diff line change @@ -142,6 +142,22 @@ generate-manifests: $(CONTROLLER_GEN)
142
142
output:rbac:dir=$(RBAC_ROOT ) \
143
143
rbac:roleName=manager-role
144
144
145
+ .PHONY : manifest-modification
146
+ manifest-modification : # Set the manifest images to the staging/production bucket.
147
+ $(MAKE ) set-manifest-image \
148
+ MANIFEST_IMG=$(CONTROLLER_IMAGE ) MANIFEST_TAG=$(TAG ) \
149
+ TARGET_RESOURCE=" ./config/default/manager_image_patch.yaml"
150
+ $(MAKE ) set-manifest-pull-policy PULL_POLICY=IfNotPresent TARGET_RESOURCE=" ./config/default/manager_pull_policy.yaml"
151
+
152
+ .PHONY : set-manifest-pull-policy
153
+ set-manifest-pull-policy :
154
+ $(info Updating kustomize pull policy file for manager resources)
155
+ sed -i' ' -e ' s@imagePullPolicy: .*@imagePullPolicy: ' " $( PULL_POLICY) " ' @' $(TARGET_RESOURCE )
156
+
157
+ .PHONY : set-manifest-image
158
+ set-manifest-image :
159
+ $(info Updating kustomize image patch file for manager resource)
160
+ sed -i' ' -e ' s@image: .*@image: ' " ${MANIFEST_IMG} :$( MANIFEST_TAG) " ' @' $(TARGET_RESOURCE )
145
161
146
162
# #@ Tools binaries
147
163
You can’t perform that action at this time.
0 commit comments