48 lines
828 B
YAML
48 lines
828 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: generate
|
|
|
|
workspace:
|
|
path: /src
|
|
|
|
clone:
|
|
depth: 50
|
|
|
|
steps:
|
|
- name: Build vuls binary
|
|
image: golang:1.20-bullseye
|
|
commands:
|
|
- mkdir -p $GOPATH/src/github.com/future-architect
|
|
- cd $GOPATH/src/github.com/future-architect
|
|
- git clone https://github.com/future-architect/vuls.git
|
|
- cd vuls
|
|
- make install
|
|
- cp $GOPATH/bin/vuls /release
|
|
volumes:
|
|
- name: release
|
|
path: /release
|
|
- name: gitea_release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
base_url: https://git.dryusdan.fr
|
|
api_key:
|
|
from_secret: apikey
|
|
files:
|
|
- /release/vuls
|
|
checksum:
|
|
- md5
|
|
- sha1
|
|
- sha256
|
|
- sha512
|
|
- adler32
|
|
- crc32
|
|
volumes:
|
|
- name: release
|
|
path: /release
|
|
when:
|
|
event: tag
|
|
|
|
volumes:
|
|
- name: release
|
|
temp: {}
|