Showing
1 changed file
with
14 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
1 | +stages: | ||
2 | + - build | ||
3 | + | ||
4 | +build: | ||
5 | + stage: build | ||
6 | + image: docker:latest | ||
7 | + services: | ||
8 | + - docker:dind | ||
9 | + script: | ||
10 | + - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY | ||
11 | + - docker build --pull -t "$CI_REGISTRY_IMAGE" . | ||
12 | + - docker push "$CI_REGISTRY_IMAGE" | ||
13 | + only: | ||
14 | + - master |
-
Please register or login to post a comment