Browse Source

Add Drone CI config, remove Gitlab CI config

master
Vladimir Hodakov 2 months ago
parent
commit
e062d95bfd
Signed by: Vladimir Hodakov <vladimir@hodakov.me> GPG Key ID: 673980B6882F82C6
3 changed files with 20 additions and 11 deletions
  1. +15
    -0
      .drone.yml
  2. +5
    -4
      Dockerfile
  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-golangci
auto_tag: true

+ 5
- 4
Dockerfile View File

@@ -1,8 +1,9 @@
FROM lab.wtfteam.pro:4567/containers/golangci-lint AS build
FROM golangci/golangci-lint:v1.19.1 AS build

LABEL maintainer="vladimir@hodakov.me"

COPY --from=lab.wtfteam.pro:4567/containers/tdlib /usr/local/include/td /usr/local/include/td
COPY --from=lab.wtfteam.pro:4567/containers/tdlib /usr/local/lib/libtd* /usr/local/lib/
COPY --from=fat0troll/tdlib /usr/local/include/td /usr/local/include/td
COPY --from=fat0troll/tdlib /usr/local/lib/libtd* /usr/local/lib/

RUN apk update && apk add --no-cache git gcc libc-dev g++ make openssl-dev zlib-dev && rm -rf /var/cache/apk/*
RUN apt-get update && apt-get -y install libssl-dev cmake zlib1g-dev g++
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt/lists/*

+ 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