Skip to content
Snippets Groups Projects
Commit a83c41d2 authored by inso's avatar inso
Browse files

Create .gitlab-ci.yml

parent c4fa4383
No related branches found
No related tags found
No related merge requests found
Pipeline #
test_build_image:
image: docker:git
tags:
- doppler-docker
services:
- docker:dind
script:
- docker build .
except:
- tags
build_image:
image: docker:git
tags:
- doppler-docker
services:
- docker:dind
script:
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" .
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG"
- docker login -u "duniterteam" -p "$DUNITERTEAM_PASSWD"
- docker tag "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" duniter/release-builder:"$CI_BUILD_TAG"
- docker push duniter/release-builder:"$CI_BUILD_TAG"
only:
- tags
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