update drone
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
stryan 2023-11-27 20:36:11 -05:00
parent b0ad50f907
commit b9d50931ad

View File

@ -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 settings:
commands: repo: git.saintnet.tech/stryan/simpbot
- go mod vendor registry: git.saintnet.tech
- tar -czf release-source-$DRONE_TAG.tar.gz * password:
- mkdir dist from_secret: build_pass
- mv release-source-$DRONE_TAG.tar.gz dist/ username:
when: from_secret: build_username
event: tag dockerfile: Containerfile
tags: latest
- name: create release-binary tar layers: true
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