Skip to content
Snippets Groups Projects
Commit eabeba02 authored by Éloïs's avatar Éloïs
Browse files

Add CI

parent 76240c1a
No related branches found
No related tags found
No related merge requests found
Pipeline #9583 failed
image: docker:18.06
services:
- docker:18.06-dind
before_script:
- docker info
test_build_image:
tags:
- redshift-docker-runner
script:
- docker build .
except:
- tags
build_image:
tags:
- redshift-docker-runner
script:
- docker pull "$CI_REGISTRY_IMAGE:latest" || true
- docker build --cache-from "$CI_REGISTRY_IMAGE:latest" --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" .
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker tag $CI_REGISTRY_IMAGE:$CI_BUILD_TAG $CI_REGISTRY_IMAGE:latest
- docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG"
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- tags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment