Skip to content

Commit 663ac81

Browse files
committed
fixing tagging
1 parent f562ecb commit 663ac81

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,18 @@ jobs:
2727
if [[ $GITHUB_REF == refs/tags/* ]]; then
2828
VERSION=${GITHUB_REF#refs/tags/}
2929
fi
30-
TAGS="${DOCKER_IMAGE}:${VERSION}-${DEBIAN_BASE}"
31-
if [ "${DEBIAN_BASE}" = "bullseye" ]; then
32-
TAGS="${TAGS} ${DOCKER_IMAGE}:${VERSION} ${DOCKER_IMAGE}:latest"
33-
fi
30+
{
31+
echo "${DOCKER_IMAGE}:${VERSION}-${DEBIAN_BASE}"
32+
if [ "${DEBIAN_BASE}" = "bullseye" ]; then
33+
echo "${DOCKER_IMAGE}:${VERSION}"
34+
echo "${DOCKER_IMAGE}:latest"
35+
fi
36+
} > tags.txt
37+
delimiter="$(openssl rand -hex 8)"
38+
echo "tags<<${delimiter}" >> $GITHUB_OUTPUT
39+
cat tags.txt >> $GITHUB_OUTPUT
40+
echo "${delimiter}" >> $GITHUB_OUTPUT
3441
echo ::set-output name=version::${VERSION}
35-
echo ::set-output name=tags::${TAGS}
3642
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
3743
3844
-

0 commit comments

Comments
 (0)