- if [ $CI_COMMIT_BRANCH == "master" ]; then docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest && docker push $CI_REGISTRY_IMAGE:latest; fi
- if [ $CI_COMMIT_BRANCH != "master" ]; then docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME && docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME; fi
- if [ $CI_COMMIT_BRANCH == "master" ]; then docker tag $CI_REGISTRY_IMAGE/puppeteer:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE/puppeteer:latest && docker push $CI_REGISTRY_IMAGE/puppeteer:latest; fi
- if [ $CI_COMMIT_BRANCH != "master" ]; then docker tag $CI_REGISTRY_IMAGE/puppeteer:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE/puppeteer:$CI_COMMIT_REF_NAME && docker push $CI_REGISTRY_IMAGE/puppeteer:$CI_COMMIT_REF_NAME; fi