ci: added automated docker image building and upload
This commit is contained in:
parent
fdcf090730
commit
d6b6a1454a
1 changed files with 12 additions and 0 deletions
|
|
@ -29,6 +29,18 @@ build:
|
||||||
tags:
|
tags:
|
||||||
- builder
|
- builder
|
||||||
|
|
||||||
|
dockerize:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- docker build . -t $DOCKER_REPO:$CI_COMMIT_REF_NAME
|
||||||
|
- docker login -u $DOCKER_USER -p $DOCKER_PASS
|
||||||
|
- docker push $DOCKER_REPO:$CI_COMMIT_REF_NAME
|
||||||
|
- docker logout
|
||||||
|
tags:
|
||||||
|
- builder
|
||||||
|
when: manual
|
||||||
|
timeout: 3h
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue