--- stages: - build variables: VERSION: "latest" build: stage: build script: - docker build -t dcr.faked.org/nexenta_exporter:${VERSION} . - docker push dcr.faked.org/nexenta_exporter:${VERSION} - docker tag dcr.faked.org/nexenta_exporter:${VERSION} dcr.faked.org/nexenta_exporter:latest - docker push dcr.faked.org/nexenta_exporter:latest