forked from mingcheng/socks5lb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
54 lines (50 loc) · 1.08 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
###
# File: .drone.yml
# Author: Ming Cheng<[email protected]>
#
# Created Date: Monday, March 9th 2020, 5:11:52 pm
# Last Modified: Friday, July 15th 2022, 5:38:32 pm
#
# http://www.opensource.org/licenses/MIT
###
kind: pipeline
type: docker
name: build_and_run_on_docker
steps:
- name: build
image: golang:1.18
environment:
GOPROXY: https://goproxy.cn
volumes:
- name: docker-sock
path: /var/run/docker.sock
commands:
- make build
- ./socks5lb -h
- name: publish-to-ghcr
image: plugins/docker
volumes:
- name: docker-sock
path: /var/run/docker.sock
environment:
GOPROXY: "https://goproxy.cn,direct"
when:
branch:
- master
event:
- push
settings:
registry: ghcr.io
repo: ghcr.io/mingcheng/socks5lb
username:
from_secret: ghcr_docker_username
password:
from_secret: ghcr_docker_password
dockerfile: Dockerfile
tags:
- latest
- 1.1.0
volumes:
- name: docker-sock
host:
path: /var/run/docker.sock