fix in ci

This commit is contained in:
Wolfgang Hottgenroth 2021-09-28 12:18:05 +02:00
parent 95d41c4d4d
commit 404ffa55da

View File

@ -1,36 +1,5 @@
stages:
- check
- build
- deploy
include:
- project: dockerized/commons
ref: master
file: gitlab-ci-template.yml
deploy:
image: registry.hottis.de/dockerized/docker-bash:latest
stage: deploy
tags:
- hottis
- linux
- docker
only:
- tags
variables:
GIT_STRATEGY: none
CONTAINER_NAME: unbound
script:
- docker stop $CONTAINER_NAME || echo "container not running, never mind"
- docker rm $CONTAINER_NAME || echo "container not existing, never mind"
- docker run
-d
--network docker-server
--ip 172.16.10.43
-v sink_config:/etc/sink
--name $CONTAINER_NAME
--restart always
$IMAGE_NAME:$CI_COMMIT_TAG
environment:
name: production