41 lines
No EOL
779 B
YAML
41 lines
No EOL
779 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
steps:
|
|
- name: go get
|
|
image: golang
|
|
commands:
|
|
- go get
|
|
- mkdir dist
|
|
- name: Building for Linux
|
|
image: golang
|
|
environment:
|
|
GOOS: linux
|
|
GOARCH: amd64
|
|
commands:
|
|
- go build -v -o dist/machinelock-manager-linux-amd64
|
|
- name: gitea release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: token
|
|
base_url: https://git.ctdo.de
|
|
files: dist/*
|
|
checksum:
|
|
- md5
|
|
- sha1
|
|
- sha256
|
|
- name: build docker image
|
|
image: plugins/docker
|
|
settings:
|
|
username: ctdo
|
|
password:
|
|
from_secret: dockerhub_password
|
|
repo: ctdo/machinelock-manager
|
|
tags: latest
|
|
|