ci: add .gitlab-ci.yml
This commit is contained in:
parent
ab513af9b9
commit
2acfb39ca5
1 changed files with 17 additions and 0 deletions
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
default:
|
||||||
|
image: docker:git
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
IMAGE: $CI_REGISTRY_IMAGE
|
||||||
|
TAG: $CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
|
||||||
|
before_script:
|
||||||
|
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
|
||||||
|
- docker info
|
||||||
|
script:
|
||||||
|
- docker build -t $IMAGE:$TAG .
|
||||||
|
- docker push $IMAGE:$TAG
|
||||||
Reference in a new issue