Skip to content

Commit e299243

Browse files
author
Matthias Koeppe
committed
.github/workflows/docker.yml: Add instructions for the case that no Docker image is pushed
1 parent bf28d20 commit e299243

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,14 @@ jobs:
292292
fi
293293
echo " FROM_DOCKER_TAG=${TAG#*:} tox -e $TOX_ENV_SANS_INCREMENTAL-incremental"
294294
done
295+
elif [ -n "$DOCKER_PUSH_REPOSITORY" -a -f .tox/$TOX_ENV/Dockertags ]; then
296+
echo "Unable to push Docker images to $DOCKER_PUSH_REPOSITORY."
297+
echo "This is normal in a pull request to sagemath/sage or to another user's repository."
298+
echo
299+
echo "If you need Docker images, "
300+
echo " - either run this GitHub Actions workflow in your repository fork"
301+
echo " - or use the method described in https://doc.sagemath.org/html/en/developer/portability_testing.html#automatic-docker-based-build-testing-using-tox
295302
else
296-
echo "No Docker images pushed"
303+
echo "No Docker images created."
297304
fi
298-
if: always()
305+
if: always() && ${{ inputs.docker_push_repository }}

0 commit comments

Comments
 (0)