24 lines
513 B
YAML
24 lines
513 B
YAML
|
image: docker:git
|
||
|
services:
|
||
|
- docker:dind
|
||
|
|
||
|
stages:
|
||
|
- 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
|
||
|
|
||
|
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
|