Verified Commit 3151d6c4 authored by Vladimir Hodakov's avatar Vladimir Hodakov 🔥

Add Drone CI config, remove Gitlab CI config

parent a29d7e7d
---
kind: pipeline
type: docker
name: build
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: registry_user
password:
from_secret: registry_password
repo: fat0troll/tdlib
auto_tag: true
\ No newline at end of file
image: docker:stable
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
CONTAINER_NAME: lab.wtfteam.pro:4567/containers/tdlib
services:
- docker:dind
stages:
- build
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
build:
stage: build
script:
- source ci/set_docker_tag.sh
- docker build -t $CONTAINER_NAME:$DOCKER_TAG .
- docker push $CONTAINER_NAME:$DOCKER_TAG
only:
- tags
- master
#!/usr/bin/env bash
if [[ $CI_BUILD_REF_NAME == "master" ]]; then
export DOCKER_TAG=latest;
else
export DOCKER_TAG="${CI_BUILD_REF_NAME}";
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment