Skip to content

Commit 967f46d

Browse files
committed
rebuild.sh accepts -f/--force
1 parent 958a611 commit 967f46d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/docker/rebuild.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22

33
docker pull docker.io/library/ubuntu:latest
44

5+
# use with --force in case it does not trigger while it should
6+
OPTS=""
7+
case "$1" in
8+
-f|--force)
9+
OPTS="--no-cache" ;;
10+
esac
11+
12+
513
# build & tag & push all at the same time
614

7-
docker buildx build \
15+
docker buildx build $OPTS \
816
-f python-nodejs.Dockerfile \
917
-t dockerhub.pl.sophia.inria.fr/python-nodejs:latest \
1018
--push .

0 commit comments

Comments
 (0)