fastpastebin/.gitlab-ci.yml

32 lines
588 B
YAML
Raw Normal View History

2019-09-25 18:47:51 +05:00
image: docker:dind
variables:
HOST: 0.0.0.0
PORT: 2375
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
2021-01-09 06:23:28 +05:00
CONTAINER_NAME: registry.gitlab.pztrn.name/fastpastebin/fastpastebin
2019-09-25 18:47:51 +05:00
GIT_STRATEGY: clone
DOCKER_TLS_CERTDIR: ""
services:
- docker:dind
stages:
- build
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
build:
stage: build
tags:
- docker
script:
- source docker/set_docker_tag.sh
- docker build -t $CONTAINER_NAME:$DOCKER_TAG .
- docker push $CONTAINER_NAME:$DOCKER_TAG
only:
- tags
2021-01-09 06:23:28 +05:00
- master