@@ -282,21 +282,25 @@ tasks:
282282 - GITHUB_REF
283283 - GITHUB_REF_NAME
284284 vars :
285- IMAGE_NAME : ghcr.io/{{.GITHUB_REPOSITORY}}{{if not (hasPrefix "refs/tags/v" .GITHUB_REF)}}-testing{{end}}
285+ PLUGIN_IMAGE_NAME : ghcr.io/{{.GITHUB_REPOSITORY}}{{if not (hasPrefix "refs/tags/v" .GITHUB_REF)}}-testing{{end}}
286+ SIDECAR_IMAGE_NAME : ghcr.io/{{.GITHUB_REPOSITORY}}-sidecar{{if not (hasPrefix "refs/tags/v" .GITHUB_REF)}}-testing{{end}}
286287 # remove /merge suffix from the branch name. This is a workaround for the GitHub workflow on PRs,
287288 # where the branch name is suffixed with /merge. Prepend pr- to the branch name on PRs.
288289 IMAGE_VERSION : ' {{regexReplaceAll "(\\d+)/merge" .GITHUB_REF_NAME "pr-${1}"}}'
289290 env :
290291 # renovate: datasource=git-refs depName=kustomize lookupName=https://github.com/sagikazarmark/daggerverse currentValue=main
291292 DAGGER_KUSTOMIZE_SHA : 32b01ce09db8bfc7ef06dec92ea20d42855cbf81
293+ # TODO: go back to upstream module once the PR is merged
292294 cmds :
293295 - >
294- dagger -s call -m github.com/sagikazarmark/daggerverse/kustomize@${DAGGER_KUSTOMIZE_SHA}
295- edit --source config --dir default set image --image controller={{.IMAGE_NAME}}:{{.IMAGE_VERSION}}
296- directory export --path manifest-build
296+ dagger -s call -m https://github.com/fcanovai/sagikazarmark-daggerverse/kustomize@kustomize-secrets
297+ edit --source . --dir kubernetes
298+ set image --image plugin-barman-cloud={{.PLUGIN_IMAGE_NAME}}:{{.IMAGE_VERSION}}
299+ set secret --secret plugin-barman-cloud --from-literal SIDECAR_IMAGE={{.SIDECAR_IMAGE_NAME}}:{{.IMAGE_VERSION}}
300+ directory directory --path kubernetes export --path manifest-build
297301 - >
298302 dagger -s call -m github.com/sagikazarmark/daggerverse/kustomize@${DAGGER_KUSTOMIZE_SHA}
299- build --source manifest-build --dir default export --path manifest.yaml
303+ build --source . --dir manifest-build export --path manifest.yaml
300304
301305 upload-manifest-to-release :
302306 desc : Upload the manifest to the release
0 commit comments