Skip to content
Snippets Groups Projects
Commit 6bcc9465 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add gitlab ci template which can be used by all Ansible inventory projects

parents
No related branches found
No related tags found
No related merge requests found
stages:
- build
- deploy
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build-docker-image:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
only:
- master
- chat
update-docker-image:
stage: deploy
tags:
- ansible-update
variables:
GIT_STRATEGY: none
script:
- docker pull "$CI_REGISTRY_IMAGE"
only:
- master
- chat
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment