Add docker release pipeline
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ac29e29e79
commit
dd743c2de9
21
.drone.docker.yml
Normal file
21
.drone.docker.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: r.pkg.cx/build/go:1.14
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-gitea-release"
|
||||||
|
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
dockerfile: docker/Dockerfile.linux.amd64
|
||||||
|
registry: r.pkg.cx
|
||||||
|
repo: r.pkg.cx/drone/gitea-release
|
||||||
|
auto_tag: true
|
Loading…
Reference in New Issue
Block a user