Skip to content

Commit 707bb30

Browse files
authored
Merge pull request #25 from fdrmrc/main2latest
main -> latest when updating.
2 parents 0be998b + fe4a546 commit 707bb30

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/update_docker_image.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
#!/bin/bash
2-
test -f docker/Dockerfile || echo \
3-
"You must run this script from the top level directory of the repository."
2+
if ! test -f docker/Dockerfile; then
3+
echo "You must run this script from the top level directory of the repository."
4+
exit 1
5+
fi
46

57
TAG=latest
68

79
if [ -n "$1" ]; then
810
TAG=$(echo $1 | sed "s/\//-/g")
11+
if [ "$TAG" == "main" ]; then
12+
TAG=latest
13+
fi
914
fi
1015
echo "Will build and push ghcr.io/fdrmrc/non_matching_test_suite:$TAG"
1116

0 commit comments

Comments
 (0)