Update .gitlab-ci.yml
This commit is contained in:
parent
42d0024ca4
commit
1ca5b9ddfc
@ -1,23 +1,17 @@
|
||||
image: docker:git
|
||||
image: hosttoday/ht-docker-dbase
|
||||
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
|
||||
- npmci login docker
|
||||
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- docker version
|
||||
- docker build -t hosttoday/ht-docker-dbase:latest .
|
||||
- docker push hosttoday/ht-docker-dbase:latest
|
||||
- npmci build docker
|
||||
only:
|
||||
- master
|
||||
tags:
|
||||
|
Loading…
Reference in New Issue
Block a user