chore: build docker image in ci
This commit is contained in:
parent
942fa88394
commit
282c3bbc0e
1 changed files with 8 additions and 21 deletions
29
.drone.yml
29
.drone.yml
|
@ -19,27 +19,6 @@ steps:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go build -v -o dist/machinelock-manager-linux-amd64
|
- go build -v -o dist/machinelock-manager-linux-amd64
|
||||||
- name: Building for Windows
|
|
||||||
image: golang
|
|
||||||
environment:
|
|
||||||
GOOS: windows
|
|
||||||
GOARCH: amd64
|
|
||||||
commands:
|
|
||||||
- go build -v -o dist/machinelock-manager-windows-amd64
|
|
||||||
- name: Building for Mac
|
|
||||||
image: golang
|
|
||||||
environment:
|
|
||||||
GOOS: darwin
|
|
||||||
GOARCH: amd64
|
|
||||||
commands:
|
|
||||||
- go build -v -o dist/machinelock-manager-darwin-amd64
|
|
||||||
- name: Building for Mac Silicon
|
|
||||||
image: golang
|
|
||||||
environment:
|
|
||||||
GOOS: darwin
|
|
||||||
GOARCH: arm64
|
|
||||||
commands:
|
|
||||||
- go build -v -o dist/machinelock-manager-darwin-arm64
|
|
||||||
- name: gitea release
|
- name: gitea release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
|
@ -51,4 +30,12 @@ steps:
|
||||||
- md5
|
- md5
|
||||||
- sha1
|
- sha1
|
||||||
- sha256
|
- sha256
|
||||||
|
- name: build docker image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username: ctdo
|
||||||
|
password:
|
||||||
|
from_secret: dockerhub_password
|
||||||
|
repo: ctdo/machinelock-manager
|
||||||
|
tags: latest
|
||||||
|
|
Loading…
Reference in a new issue