2021-07-27 21:36:34 -07:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: main
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
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
|
|
|
|
commnds:
|
2021-07-28 16:56:34 -07:00
|
|
|
- nimble build -y
|
|
|
|
- mv passphrase passphrase_linux
|
2021-07-27 21:36:34 -07:00
|
|
|
|
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
when:
|
|
|
|
event: tag
|
2021-07-28 16:46:21 -07:00
|
|
|
depends_on:
|
|
|
|
- build-windows
|
|
|
|
- build-linux
|
2021-07-27 21:36:34 -07:00
|
|
|
settings:
|
|
|
|
base_url: 'https://git.jfmonty2.com/jfmonty2/passphrase.git'
|
|
|
|
files:
|
|
|
|
- passphrase_linux
|
|
|
|
- passphrase.exe
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|