fix: Fix image digest replacement

This commit is contained in:
2025-12-21 19:48:13 +01:00
parent 5e558b2b23
commit 478763d87d

View File

@@ -91,8 +91,10 @@ jobs:
- name: Kustomize manifests
if: inputs.push_manifests == 'true'
run: |
# TODO: Fix this
./kustomize build ./manifests | sed "s/\${DIGEST}/${{ steps.build.outputs.digest }}/" > ./manifests.yaml
curl -L https://github.com/hairyhenderson/gomplate/releases/download/v4.3.3/gomplate_linux-amd64 -o gomplate
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
if: inputs.push_manifests == 'true'