This commit is contained in:
parent
b0ad50f907
commit
b9d50931ad
46
.drone.yml
46
.drone.yml
@ -1,37 +1,19 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: submodules
|
||||||
image: golang
|
image: alpine/git
|
||||||
commands:
|
commands:
|
||||||
- make
|
- git submodule update --init --recursive
|
||||||
|
- name: build-container
|
||||||
- name: create release-source tar
|
image: plugins/docker
|
||||||
image: golang
|
|
||||||
commands:
|
|
||||||
- go mod vendor
|
|
||||||
- tar -czf release-source-$DRONE_TAG.tar.gz *
|
|
||||||
- mkdir dist
|
|
||||||
- mv release-source-$DRONE_TAG.tar.gz dist/
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
- name: create release-binary tar
|
|
||||||
image: golang
|
|
||||||
commands:
|
|
||||||
- tar -czf dist/release-$DRONE_TAG-$DRONE_STAGE_ARCH.tar.gz init/simpbot.service config.yaml.sample simpbot
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
- name: release
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
repo: git.saintnet.tech/stryan/simpbot
|
||||||
from_secret: gitea_token
|
registry: git.saintnet.tech
|
||||||
files:
|
password:
|
||||||
- dist/*
|
from_secret: build_pass
|
||||||
base_url: https://git.saintnet.tech
|
username:
|
||||||
when:
|
from_secret: build_username
|
||||||
event: tag
|
dockerfile: Containerfile
|
||||||
|
tags: latest
|
||||||
|
layers: true
|
||||||
|
Loading…
Reference in New Issue
Block a user