Skip to content

Commit 36652d1

Browse files
committed
ci: Consider the HEAD commit hash for our cache test image tag
For the development branches of taskwarrior, caching 2.5.2 or 2.6.0 is not sufficient since HEAD is still moving. Build the tag hash based on the HEAD hash of the development branch in question.
1 parent 8353170 commit 36652d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,18 @@ jobs:
2626
run: |
2727
set -ex -o pipefail
2828
shopt -s lastpipe
29+
(
30+
echo -n sha:
31+
git ls-remote https://github.com/GothenburgBitFactory/taskwarrior.git | \
32+
( grep heads/$TASK_VERSION || : ) | awk '{print $1}'
33+
) | read -r TASK_DEVEL_SHA _ || :
2934
(
3035
echo ALPINE_VERSION="$ALPINE_VERSION"
3136
echo PYTHON_VERSION="$PYTHON_VERSION"
3237
echo TASK_VERSION="$TASK_VERSION"
3338
echo VIM_VERSION="$VIM_VERSION"
3439
echo VIMWIKI_VERSION="$VIMWIKI_VERSION"
40+
echo TASK_DEVEL_SHA="$TASK_DEVEL_SHA"
3541
cat Dockerfile
3642
) | sha256sum | read -r tag _
3743
docker login "$DOCKER_REGISTRY" -u "$GITHUB_USER" -p "$GITHUB_TOKEN" || :

0 commit comments

Comments
 (0)