Skip to content

Commit

Permalink
[docker] Refine docker tag for build number (sonic-net#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft authored Mar 12, 2018
1 parent 1f4ce09 commit 75c6f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion push_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ docker load < $DOCKER_IMAGE_FILE
docker_image_name=$(basename $DOCKER_IMAGE_FILE | cut -d. -f1)
remote_image_name=$REGISTRY_SERVER:$REGISTRY_PORT/$docker_image_name:$DOCKER_IMAGE_TAG
timestamp="$(date -u +%Y%m%d)"
build_version="${timestamp}.${BUILD_NUMBER}"
build_version="${timestamp}.bld-${BUILD_NUMBER}"
build_remote_image_name=$REGISTRY_SERVER:$REGISTRY_PORT/$docker_image_name:$build_version

## Add registry information as tag, so will push as latest
Expand Down

0 comments on commit 75c6f19

Please sign in to comment.