2022-01-10 04:47:40 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
type: docker
|
|
|
|
|
|
|
|
steps:
|
2022-08-06 20:20:46 +00:00
|
|
|
- name: test
|
|
|
|
image: golang:alpine
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
|
|
|
commands:
|
|
|
|
- go mod download
|
2022-08-06 20:22:51 +00:00
|
|
|
- go install github.com/onsi/ginkgo/v2/ginkgo
|
2022-08-06 20:20:46 +00:00
|
|
|
- ginkgo .
|
2022-08-06 20:24:45 +00:00
|
|
|
environment:
|
2022-08-06 20:25:05 +00:00
|
|
|
CGO_ENABLED: '0'
|
2022-01-10 04:47:40 +00:00
|
|
|
- name: build
|
|
|
|
image: tystuyfzand/goc:latest
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
|
|
|
commands:
|
|
|
|
- mkdir -p /build
|
|
|
|
- go mod download
|
2022-03-31 00:13:51 +00:00
|
|
|
- export CGO_ENABLED=0
|
2022-01-10 04:49:13 +00:00
|
|
|
- goc -o /build/dlrouter
|
2022-01-10 04:47:40 +00:00
|
|
|
environment:
|
|
|
|
GOOS: linux,windows,darwin
|
|
|
|
GOARCH: 386,amd64,arm,arm64
|
2022-08-06 20:20:46 +00:00
|
|
|
depends_on: [ test ]
|
2022-01-10 04:47:40 +00:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
path: /build
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://git.meow.tf
|
|
|
|
title: release
|
|
|
|
files:
|
|
|
|
- /build/dlrouter_*
|
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha1
|
|
|
|
- sha256
|
|
|
|
environment:
|
|
|
|
PLUGIN_API_KEY:
|
|
|
|
from_secret: gitea_token
|
|
|
|
when:
|
|
|
|
event: tag
|
2022-03-31 01:02:55 +00:00
|
|
|
depends_on: [ build ]
|
2022-03-31 00:13:51 +00:00
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: registry.meow.tf/tyler/armbian-router
|
|
|
|
registry: registry.meow.tf
|
2022-08-06 20:20:46 +00:00
|
|
|
depends_on: [ test ]
|
2022-03-31 01:26:04 +00:00
|
|
|
when:
|
|
|
|
event: tag
|
2022-01-10 04:47:40 +00:00
|
|
|
volumes:
|
|
|
|
- name: build
|
|
|
|
temp: {}
|