diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 424f8e83658b341eae30ca95814fc82a2441d245..3fcdeb9d10ab47cca6bed536ae28c4c7d1d91d16 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,15 @@ stages: - build +variables: + VERSION: "latest" + build: stage: build script: - - docker build -t dcr.mfb.io/devops/nexenta_exporter:latest . + - docker build -t dcr.mfb.io/devops/nexenta_exporter:${VERSION} . + - docker push dcr.mfb.io/devops/nexenta_exporter:${VERSION} + - docker tag dcr.mfb.io/devops/nexenta_exporter:${VERSION} dcr.mfb.io/devops/nexenta_exporter:latest - docker push dcr.mfb.io/devops/nexenta_exporter:latest tags: - autoscaling