Skip to content

Commit

Permalink
Raw output for version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubken committed May 16, 2023
1 parent f95500d commit 1858c21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"registry": "ghcr.io/{{ cookiecutter.organization }}/{{ cookiecutter.name }}",
"predict_cron": "00 07 * * *",
"predict_cpu": 4096,
"predict_memory": 2048,
"_copy_without_render": ["{{cookiecutter.name}}/scripts/version.sh"]
"predict_memory": 2048
}
4 changes: 2 additions & 2 deletions {{cookiecutter.name}}/scripts/version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
{% raw %}#!/usr/bin/env bash
set -euxo pipefail

while [ $# -gt 0 ]; do
Expand Down Expand Up @@ -28,4 +28,4 @@ if [[ ${ ref } == refs/tags/* ]]; then
TAG_NAME=$(echo "${ ref }" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
VERSION=$(echo "${ TAG_NAME }" | sed -e 's/^v//')
fi
fi{% endraw %}

0 comments on commit 1858c21

Please sign in to comment.