node-exporter/.gitlab/.gitlab-ci.yml

17 lines
473 B
YAML
Raw Normal View History

2022-06-02 13:19:11 -04:00
image: docker:latest
stages:
- publish
docker:
stage: publish
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
script:
- docker build --no-cache -t "$CI_REGISTRY_IMAGE:latest" -t ztimson/node-exporter:latest .
- docker push "$CI_REGISTRY_IMAGE:latest"
2022-06-02 13:23:35 -04:00
- docker login -u ztimson -p $DOCKER_TOKEN
2022-06-02 13:19:11 -04:00
- docker push "ztimson/node-exporter:latest"
rules:
- if: $CI_COMMIT_BRANCH