sledgemapper/.drone.yml

61 lines
1.3 KiB
YAML
Raw Normal View History

2020-11-22 21:21:08 +00:00
kind: pipeline
2020-11-23 15:56:49 +00:00
name: default
2020-11-26 22:34:16 +00:00
2020-11-22 21:21:08 +00:00
steps:
2020-11-26 22:34:16 +00:00
- name: backend
2020-11-25 22:06:59 +00:00
image: plugins/docker
settings:
2020-11-26 22:34:16 +00:00
repo: privateregistry.michelescandura.com/michele/sledgemapper
2020-11-25 22:06:59 +00:00
registry: privateregistry.michelescandura.com
2020-11-26 22:34:16 +00:00
auto_tag: true
- name: frontend
2021-08-21 11:58:19 +00:00
image: privateregistry.michelescandura.com/michele/basecompileimage:1.1
2021-01-17 22:24:14 +00:00
pull: true
2020-11-26 23:49:47 +00:00
volumes:
- name: cache
path: /release
2020-11-27 21:23:08 +00:00
commands:
- chmod +x build.sh
- sh build.sh
2020-11-26 22:34:16 +00:00
- name: zip
2020-11-26 22:38:16 +00:00
image: alpine:latest
2020-12-13 23:13:36 +00:00
when:
2020-12-13 22:27:51 +00:00
event:
- tag
2020-11-27 00:12:44 +00:00
volumes:
2020-11-26 23:49:47 +00:00
- name: cache
path: /release
2020-11-26 22:42:14 +00:00
commands:
- apk update
- apk add zip
2020-11-27 22:13:28 +00:00
- mkdir /release/zip
2020-12-13 22:27:51 +00:00
- cd /release/net5.0/win-x64
- zip -r sledgemapper-${DRONE_TAG}-win.zip ./publish
- cp sledgemapper-${DRONE_TAG}-win.zip /release/zip
2020-12-08 16:45:45 +00:00
- cd /release/net5.0/osx-x64
2020-12-13 22:27:51 +00:00
- zip -r sledgemapper-${DRONE_TAG}-osx.zip ./publish
- cp sledgemapper-${DRONE_TAG}-osx.zip /release/zip
2020-12-08 16:45:45 +00:00
- cd /release/net5.0/linux-x64
2020-12-13 22:27:51 +00:00
- zip -r sledgemapper-${DRONE_TAG}-linux.zip ./publish
- cp sledgemapper-${DRONE_TAG}-linux.zip /release/zip
2020-11-26 22:34:16 +00:00
- name: gitea_release
image: plugins/gitea-release
2020-11-30 11:20:35 +00:00
when:
event:
- tag
2020-11-27 00:12:44 +00:00
volumes:
2020-11-26 23:49:47 +00:00
- name: cache
path: /release
2020-11-26 22:34:16 +00:00
settings:
2021-08-21 21:13:26 +00:00
api_key: 5eb87a0a7d55fbf8fb64e678781a5ddcc1a27e09
2020-11-26 22:34:16 +00:00
base_url: https://git.michelescandura.com
2020-11-26 23:49:47 +00:00
files: /release/zip/*
2020-12-08 21:55:14 +00:00
title: ${DRONE_TAG}
2020-11-26 23:49:47 +00:00
volumes:
- name: cache
temp: {}