2021-07-29 00:02:09 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: main
|
|
|
|
|
|
|
|
trigger:
|
2021-07-29 01:17:21 +00:00
|
|
|
event: tag
|
2021-07-29 00:02:09 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build-windows
|
|
|
|
image: nimlang/nim
|
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install -y mingw-w64
|
|
|
|
- nimble build -y -d:mingw
|
|
|
|
|
|
|
|
- name: build-linux
|
|
|
|
image: nimlang/nim
|
|
|
|
commands:
|
|
|
|
- nimble build -y
|
|
|
|
- mv passphrase passphrase_linux
|
|
|
|
|
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
depends_on:
|
|
|
|
- build-windows
|
|
|
|
- build-linux
|
|
|
|
settings:
|
2021-07-29 01:17:21 +00:00
|
|
|
base_url: 'https://git.jfmonty2.com'
|
2021-07-29 00:02:09 +00:00
|
|
|
files:
|
|
|
|
- passphrase_linux
|
|
|
|
- passphrase.exe
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|