update drone
continuous-integration/drone/push Build is passing Details

This commit is contained in:
stryan 2023-11-27 20:36:11 -05:00
parent b0ad50f907
commit b9d50931ad
1 changed files with 16 additions and 34 deletions

View File

@ -1,37 +1,19 @@
kind: pipeline
name: default
steps:
- name: build
image: golang
commands:
- make
- name: create release-source tar
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:
api_key:
from_secret: gitea_token
files:
- dist/*
base_url: https://git.saintnet.tech
when:
event: tag
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build-container
image: plugins/docker
settings:
repo: git.saintnet.tech/stryan/simpbot
registry: git.saintnet.tech
password:
from_secret: build_pass
username:
from_secret: build_username
dockerfile: Containerfile
tags: latest
layers: true