X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fdocker%2Fdpush.sh;h=b969a346584fe483dbf9f76a942b43a7e86b48e0;hb=a38dd57c55262c2960c5ec70131ed2f8d979e6b6;hp=99a88f96e8899ada8b0645b07240c191d0be6e3f;hpb=12f7f46efd897a01ebe7894d0f26f95a6c8e2672;p=aaf%2Fauthz.git diff --git a/auth/docker/dpush.sh b/auth/docker/dpush.sh index 99a88f96..b969a346 100644 --- a/auth/docker/dpush.sh +++ b/auth/docker/dpush.sh @@ -1,16 +1,14 @@ -# +#!/bin/bash # Docker push Script. Reads all the components generated by install, on per-version basis # # Pull in Variables from d.props . ./d.props -if ["$1" == ""]; then - AAF_COMPONENTS=`ls ../aaf_*HOT/bin | grep -v '\.'` -else - AAF_COMPONENTS=$1 -fi +AAF_COMPONENTS="$(cat components) core agent config" for AAF_COMPONENT in ${AAF_COMPONENTS}; do + # docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${OLD_VERSION} docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} - + docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:latest + # docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${NEW_VERSION} done