Commit 1692d294 authored by acidhunter's avatar acidhunter

add gitlab-ci

parent 00c1be0d
Pipeline #35028266 failed with stages
in 3 minutes and 59 seconds
image: docker:latest
#image: docker:latest
services:
- docker:dind
#services:
# - docker:dind
#before_script:
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
......@@ -19,3 +19,16 @@ build:
expire_in: 14 day
tags:
- docker
docker:
stage: deploy
dependencies:
- build
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build -t $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG .
- docker push $CI_REGISTRY/$CI_PROJECT_PATH
only:
- master
tags:
- docker
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment