Skip to content
Snippets Groups Projects
Commit 251572cf authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

ci

parent d86f5b9f
No related branches found
No related tags found
No related merge requests found
...@@ -44,27 +44,29 @@ variables: ...@@ -44,27 +44,29 @@ variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
services: services:
- docker:dind - docker:dind
stages: stages:
- setup - setup
- test - test
test: test:
tags: [docker]
image: docker:latest image: docker:latest
script: script:
- docker-compose -f .docker/docker-compose.yml up - docker-compose -f .docker/docker-compose.yml up
build-testenv: build-testenv:
image: docker:latest tags: [docker]
stage: setup image: docker:latest
script: stage: setup
- docker login -u testuser -p $CI_REGISTRY_PASSWORD $CI_REGISTRY script:
# use here general latest or specific branch latest... - docker login -u testuser -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:latest || true # use here general latest or specific branch latest...
- docker build - docker pull $CI_REGISTRY_IMAGE:latest || true
--pull - docker build
--file .dockerfile --pull
--cache-from $CI_REGISTRY_IMAGE:latest --file .dockerfile
-t $CI_REGISTRY_IMAGE:latest . --cache-from $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment