From e871288b5d1b21080efc476d5a62e6fe07a3e8b0 Mon Sep 17 00:00:00 2001 From: "James P. Ketrenos" Date: Tue, 17 Sep 2019 16:02:45 -0700 Subject: [PATCH] Added some snippet info on tagging and pushing to Harbor Signed-off-by: James P. Ketrenos --- scripts/build-dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/build-dockerfile b/scripts/build-dockerfile index 3cabae2..70eca88 100755 --- a/scripts/build-dockerfile +++ b/scripts/build-dockerfile @@ -53,7 +53,7 @@ EOM envsubst < templates/ending.in >> Dockerfile -docker build . -t $CONTAINER:agama-${AGAMA_VERSION} +docker build . -t ${CONTAINER}:agama-${AGAMA_VERSION} cat << EOM @@ -63,4 +63,11 @@ to Dockerfile and tag it as agama-${AGAMA_VERSION}: git commit -s -a -m "Build of agama-${AGAMA_VERSION}" git tag -f agama-${AGAMA_VERSION} +To push to Harbor: + + docker tag ${CONTAINER}:agama-${AGAMA_VERSION} amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:agama-${AGAMA_VERSION} + docker tag ${CONTAINER}:agama-${AGAMA_VERSION} amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:latest + docker push amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:agama-${AGAMA_VERSION} + docker push amr-registry.caas.intel.com/vtt-osgc/solutions/${CONTAINER}:latest + EOM