Browse Source

Add Drone CI config, remove Gitlab CI config

tags/1.3.0
Vladimir Hodakov 6 months ago
parent
commit
3151d6c4b4
Signed by: fat0troll <vladimir@hodakov.me> GPG Key ID: 673980B6882F82C6
3 changed files with 15 additions and 32 deletions
  1. +15
    -0
      .drone.yml
  2. +0
    -25
      .gitlab-ci.yml
  3. +0
    -7
      ci/set_docker_tag.sh

+ 15
- 0
.drone.yml View File

@@ -0,0 +1,15 @@
---
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

+ 0
- 25
.gitlab-ci.yml View File

@@ -1,25 +0,0 @@
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

+ 0
- 7
ci/set_docker_tag.sh View File

@@ -1,7 +0,0 @@
#!/usr/bin/env bash

if [[ $CI_BUILD_REF_NAME == "master" ]]; then
export DOCKER_TAG=latest;
else
export DOCKER_TAG="${CI_BUILD_REF_NAME}";
fi

Loading…
Cancel
Save