Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
containers
tdlib-golangci
Commits
e062d95b
Verified
Commit
e062d95b
authored
Oct 08, 2019
by
Vladimir Hodakov
🔥
Browse files
Add Drone CI config, remove Gitlab CI config
parent
53612a8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
.drone.yml
0 → 100644
View file @
e062d95b
---
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
Dockerfile
View file @
e062d95b
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/
*
ci/set_docker_tag.sh
deleted
100644 → 0
View file @
53612a8f
#!/usr/bin/env bash
if
[[
$CI_BUILD_REF_NAME
==
"master"
]]
;
then
export
DOCKER_TAG
=
latest
;
else
export
DOCKER_TAG
=
"
${
CI_BUILD_REF_NAME
}
"
;
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment