0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2024-11-04 17:31:17 +00:00
wg-gen-web/.gitlab-ci.yml
2020-02-05 13:01:17 +09:00

21 lines
559 B
YAML

stages:
- build docker image
- push docker hub
build:
stage: build docker image
image: docker:latest
script:
- docker info
- docker build --network br_docker --tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA} --tag ${CI_REGISTRY_IMAGE}:latest .
push:
stage: push docker hub
image: docker:latest
only:
- master
script:
- echo ${REGISTRY_PASSWORD} | docker login -u ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY}
- docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}
- docker push ${CI_REGISTRY_IMAGE}:latest