Skip to content
Snippets Groups Projects
Commit 09d59a9f authored by Jan Grewe's avatar Jan Grewe
Browse files

CI: add version for Docker image

parent 7fe220cd
Branches
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment