Make push-latest simpler
@@ -320,9 +320,15 @@ jobs:
- run:
command: |
export COMMIT="${CIRCLE_SHA1:8:8}"
+ export PULL_TAG="circle-${COMMIT}"
export TAG="latest"
+ export REPO="networkservicemesh"
export CONTAINERS=(nsmd nsmd-k8s nsmdp crossconnect-monitor icmp-responder-nse vppagent-icmp-responder-nse vppagent-nsc nsc vppagent-dataplane)
- for c in ${CONTAINERS[@]}; do make docker-${c}-build docker-${c}-push; done
+ for c in ${CONTAINERS[@]}; do
+ docker pull ${REPO}/${c}:${PULL_TAG}
+ docker tag ${REPO}/${c}:${PULL_TAG} ${REPO}/${c}:${TAG}
+ docker push ${REPO}/${c}:${TAG}
+ done
workflows:
version: 2
