geoip-geosite-with-ru-block.../.drone.yml

38 lines
677 B
YAML
Raw Normal View History

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-11 21:36:11 +03:00
- apk add --no-cache curl grep libidn sipcalc gawk git patch bash python3
2023-11-11 19:49:22 +03:00
- bash generate.sh
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:
- apk add --no-cache curl
- sh tag.sh
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
files: .temp/result/*
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
- tag