Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions images/virt-artifact/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# Source https://github.com/kubevirt/kubevirt/blob/v1.3.1/hack/dockerized#L15
{{- $gitRepoName := "3p-kubevirt" }}
{{- $gitRepoUrl := (printf "%s/%s" "deckhouse" $gitRepoName) }}
{{- $tag := get $.Core $gitRepoName }}
{{- $version := (split "-" $tag)._0 }}
{{- $tag := "chore/debug/add-debug-nodeplacement" }}
{{/*{{- $tag := get $.Core $gitRepoName }}*/}}
{{- $version := "v1.6.2" }}
{{/*{{- $version := (split "-" $tag)._0 }}*/}}

---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-src-artifact
Expand All @@ -13,9 +15,13 @@ secrets:
- id: SOURCE_REPO
value: {{ $.SOURCE_REPO }}
shell:
# TODO: remove before merge
installCacheVersion: "{{ now | date "Mon Jan 2 15:04:05 MST 2006" }}"
install:
- |
echo "Git clone {{ $gitRepoName }} repository..."
echo "[INFO] [ $(date) ]"
echo "[INFO] Git clone {{ $gitRepoName }} repository..."
echo "[INFO] Clone branch {{ $tag }}"
git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $tag }} /src/kubevirt

rm -rf /src/kubevirt/.git
Expand Down
Loading
Loading