Add new file
This commit is contained in:
parent
31b1f48840
commit
125fe52912
35
.gitlab-ci.yml
Normal file
35
.gitlab-ci.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
image: docker:git
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- release
|
||||||
|
|
||||||
|
variables:
|
||||||
|
CONTAINER_TEST_IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:$CI_BUILD_REF_NAME
|
||||||
|
CONTAINER_RELEASE_IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:latest
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- docker login -u $DOCKERU -p $DOCKERP
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- docker version
|
||||||
|
- docker build -t $CONTAINER_TEST_IMAGE .
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- dockerbuild
|
||||||
|
|
||||||
|
release:
|
||||||
|
stage: release
|
||||||
|
script:
|
||||||
|
- docker version
|
||||||
|
- docker build -t hosttoday/ht-docker-dbase:latest .
|
||||||
|
- docker push hosttoday/ht-docker-dbase:latest
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- dockerbuild
|
Loading…
Reference in New Issue
Block a user