Step 3:
stage: build
only:
- "master"
script:
- docker pull $IMAGE:${VERSION}_test
- docker tag $IMAGE:${VERSION}_test $IMAGE:latest
- docker tag $IMAGE:${VERSION}_test $IMAGE:$VERSION
- docker push $IMAGE:latest
- docker push $IMAGE:$VERSION
tags: [build]