We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbdde8c commit 565b062Copy full SHA for 565b062
blast/2.x/BUILD.md
@@ -1,4 +1,4 @@
1
- # Building instructions
+# Building instructions
2
3
Run:
4
sratoolkit/3.x/hooks/build
@@ -5,5 +5,5 @@ if [ -z ${VERSION} ]; then
5
exit 1
6
else
7
echo "Building ${VERSION}"
8
- docker build -f ${DOCKERFILE_PATH} --build-arg VERSION=${VERSION} -t ${IMAGE_NAME} .
+ docker build -f ${DOCKERFILE_PATH} --build-arg VERSION=${VERSION} -t ${DOCKER_REPO}:${VERSION} .
9
fi
sratoolkit/3.x/hooks/post_push
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ -z ${VERSION} ]; then
+ echo "VERSION environment variable not set."
+ exit 1
+else
+ echo "Tagging ${VERSION} as latest"
+ docker tag ${DOCKER_REPO}:${VERSION} ${DOCKER_REPO}:latest
+ docker push ${DOCKER_REPO}:latest
10
+fi
0 commit comments