Skip to content

Commit bf28d20

Browse files
author
Matthias Koeppe
committed
.github/workflows/docker.yml: Use Dockertags.pushed
1 parent 4826a15 commit bf28d20

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,13 +262,13 @@ jobs:
262262
if: always()
263263
- name: List Docker images
264264
run: |
265-
if [ -n "$DOCKER_PUSH_REPOSITORY" -a -f .tox/$TOX_ENV/Dockertags ]; then
266-
set -- $(cat .tox/$TOX_ENV/Dockertags)
265+
if [ -n "$DOCKER_PUSH_REPOSITORY" -a -f .tox/$TOX_ENV/Dockertags.pushed ]; then
266+
set -- $(cat .tox/$TOX_ENV/Dockertags.pushed)
267267
case $# in
268268
1) images="image"; one_image="the image";;
269269
*) images="images"; one_image="one of the images";;
270270
esac
271-
echo "::notice title=Docker $images pushed::Pushed $images $(echo $(cat .tox/$TOX_ENV/Dockertags))"
271+
echo "::notice title=Docker $images pushed::Pushed $images $*)"
272272
echo
273273
echo "To pull $one_image and enter the container, type:"
274274
echo
@@ -292,5 +292,7 @@ jobs:
292292
fi
293293
echo " FROM_DOCKER_TAG=${TAG#*:} tox -e $TOX_ENV_SANS_INCREMENTAL-incremental"
294294
done
295+
else
296+
echo "No Docker images pushed"
295297
fi
296298
if: always()

0 commit comments

Comments
 (0)