We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67e2f9e commit 3c42f02Copy full SHA for 3c42f02
docker/bin/push2dockerhub.sh
@@ -23,12 +23,11 @@ if [[ "$BRANCH_NAME" == "main" ]]; then
23
docker push $FROM_DOCKER_REPOSITORY:latest
24
fi
25
26
-if [[ "$BRANCH_NAME" == "prod" ]]; then
27
- docker tag $IMG_TO_PUSH $FROM_DOCKER_REPOSITORY:prod-latest
28
- docker push $FROM_DOCKER_REPOSITORY:prod-latest
29
-fi
30
-
31
if [[ "$GIT_TAG_DATE_BASED" == true ]]; then
+ # production tag
32
docker tag $IMG_TO_PUSH $FROM_DOCKER_REPOSITORY:$GIT_TAG
33
docker push $FROM_DOCKER_REPOSITORY:$GIT_TAG
+ # used by services like sitemap-generator
+ docker tag $IMG_TO_PUSH $FROM_DOCKER_REPOSITORY:prod-latest
+ docker push $FROM_DOCKER_REPOSITORY:prod-latest
34
0 commit comments