stages: - build before_script: - apk update - apk add nodejs npm - apk add yarn - apk add curl - export TAG=${CI_COMMIT_TAG:-latest} build: stage: build services: - docker:20.10.11-dind script: - ./build.sh - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.e-biz.fr - docker build . -t $CI_REGISTRY_IMAGE - docker push $CI_REGISTRY_IMAGE:$TAG only: - master