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

Add new file

parent 4d92e1dc
No related branches found
No related tags found
No related merge requests found
Pipeline #6359 passed
image: docker:18.06
services:
- docker:18.06-dind
before_script:
- docker info
test_build_image:
tags:
- docker
script:
- docker build .
except:
- tags
build_image:
tags:
- docker
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