Skip to content

Commit

Permalink
chore(module): remove obsolete release.yaml (#457)
Browse files Browse the repository at this point in the history
Get version directly from environment variable

Signed-off-by: Ivan Mikheykin <[email protected]>
  • Loading branch information
diafour authored Oct 17, 2024
1 parent 03e66b4 commit 69e4003
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions werf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,29 +154,8 @@ git:
- hooks/lib/tests
- hooks/test*
---
image: release-channel-version-artifact
from: {{ .Images.BASE_ALPINE }}
git:
- add: /
to: /
includePaths:
- release.yaml
shell:
beforeInstall:
- apk add --no-cache curl
- curl -sfL https://github.com/mikefarah/yq/releases/download/2.4.1/yq_linux_amd64 --output /usr/local/bin/yq
- chmod +x /usr/local/bin/yq
install:
- |
version="{{ env "MODULES_MODULE_TAG" }}"
yq w /release.yaml version $version | yq r - -j > version.json
---
image: release-channel-version
from: {{ .Images.BASE_SCRATCH }}
import:
- image: release-channel-version-artifact
add: /
to: /
after: install
includePaths:
- version.json
shell:
install:
- echo '{"version":"{{ env "MODULES_MODULE_TAG" }}"}' > version.json

0 comments on commit 69e4003

Please sign in to comment.