---
stages:
  - build

variables:
  VERSION: "latest"

build:
  stage: build
  script:
    - docker build -t dcr.flix.tech/platform/core/nexenta_exporter:${VERSION} .
    - docker push dcr.flix.tech/platform/core/nexenta_exporter:${VERSION}
    - docker tag dcr.flix.tech/platform/core/nexenta_exporter:${VERSION} dcr.flix.tech/platform/core/nexenta_exporter:latest
    - docker push dcr.flix.tech/platform/core/nexenta_exporter:latest
  tags:
    - autoscaling
