fix: Fix image digest replacement
This commit is contained in:
@@ -91,8 +91,10 @@ jobs:
|
|||||||
- name: Kustomize manifests
|
- name: Kustomize manifests
|
||||||
if: inputs.push_manifests == 'true'
|
if: inputs.push_manifests == 'true'
|
||||||
run: |
|
run: |
|
||||||
# TODO: Fix this
|
curl -L https://github.com/hairyhenderson/gomplate/releases/download/v4.3.3/gomplate_linux-amd64 -o gomplate
|
||||||
./kustomize build ./manifests | sed "s/\${DIGEST}/${{ steps.build.outputs.digest }}/" > ./manifests.yaml
|
chmod +x ./gomplate
|
||||||
|
echo ${{ steps.images.outputs.images }} > ./images.json
|
||||||
|
./kustomize build ./manifests | ./gomplate --context images="file://${PWD}/images.json" > ./manifests.yaml
|
||||||
|
|
||||||
- name: Push manifests
|
- name: Push manifests
|
||||||
if: inputs.push_manifests == 'true'
|
if: inputs.push_manifests == 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user