mirror of
https://git.freecumextremist.com/icscarythings/treebird-docker.git
synced 2024-11-04 21:54:12 +00:00
23 lines
698 B
YAML
23 lines
698 B
YAML
---
|
|
kind: pipeline
|
|
type: exec
|
|
name: default
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: build
|
|
environment:
|
|
PLUGIN_API_KEY:
|
|
from_secret: release_api_key
|
|
DRONE_REPO_OWNER: icscarythings
|
|
DRONE_REPO_NAME: treebird-docker
|
|
commands:
|
|
- ./build_container.sh
|
|
- mkdir release/
|
|
- rm -v treebird-latest/treebird
|
|
- tar -czf release/treebird-static-files-latest-noarch-`date +%Y-%m-%d-T%H%M%S`-`git rev-parse --short HEAD`.tar.gz treebird-latest/ treebird.nginx
|
|
- docker save treebird:latest | gzip > release/treebird-latest-amd64-`date +%Y-%m-%d-T%H%M%S`-`git rev-parse --short HEAD`.tar.gz
|
|
- export PLUGIN_API_KEY DRONE_REPO_OWNER DRONE_REPO_NAME; ./release_files.sh
|