2023-11-11 19:49:22 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: generate
|
2023-11-11 20:33:51 +03:00
|
|
|
image: golang:1.19-alpine
|
2023-11-11 19:49:22 +03:00
|
|
|
commands:
|
2023-11-16 12:19:06 +03:00
|
|
|
- apk add --no-cache make curl grep libidn sipcalc gawk git patch bash python3
|
|
|
|
- make all
|
2023-11-11 21:36:11 +03:00
|
|
|
- name: create release tag
|
|
|
|
image: alpine:latest
|
|
|
|
environment:
|
|
|
|
GITEA_API_KEY:
|
|
|
|
from_secret: gitea_api_key
|
|
|
|
commands:
|
2023-11-16 12:19:06 +03:00
|
|
|
- apk add --no-cache make curl
|
|
|
|
- make release
|
2023-11-11 21:36:11 +03:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
2023-11-11 19:49:22 +03:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_api_key
|
|
|
|
base_url: https://gitea.neur0tx.site
|
2023-11-16 11:45:15 +03:00
|
|
|
files: .build/*
|
2023-11-11 19:49:22 +03:00
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
when:
|
2023-11-11 21:36:11 +03:00
|
|
|
event:
|
|
|
|
- tag
|
2023-11-11 19:49:22 +03:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
2023-11-11 21:47:51 +03:00
|
|
|
- push
|
2023-11-15 23:00:01 +03:00
|
|
|
- tag
|
|
|
|
- cron
|
|
|
|
- custom
|