forked from deblan/database-anonymizer
36 lines
589 B
YAML
36 lines
589 B
YAML
when:
|
|
- event: [pull_request, tag]
|
|
- event: push
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
- feature/*
|
|
- release/*
|
|
- renovate/*
|
|
|
|
depends_on:
|
|
- test
|
|
|
|
variables:
|
|
- &golang_image 'golang:1.22.0'
|
|
|
|
steps:
|
|
"Add vendor":
|
|
image: *golang_image
|
|
commands:
|
|
- go mod vendor
|
|
|
|
"Run build":
|
|
image: *golang_image
|
|
commands:
|
|
- go build
|
|
|
|
"Publish":
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: gitnet_api_key
|
|
base_url: https://gitnet.fr
|
|
files: ./database-anonymizer
|
|
when:
|
|
event: [tag]
|