mirror of
https://git.freecumextremist.com/icscarythings/treebird-docker.git
synced 2024-11-23 16:33:46 +00:00
21 lines
727 B
YAML
21 lines
727 B
YAML
---
|
|
kind: pipeline
|
|
type: exec
|
|
name: default
|
|
|
|
platform:
|
|
os: linux
|
|
arch: amd64
|
|
|
|
steps:
|
|
- name: build
|
|
environment:
|
|
APIKEY:
|
|
from_secret: release_api_key
|
|
commands:
|
|
- ./build_container.sh
|
|
- mkdir release/
|
|
- rm -v treebird-latest/treebird
|
|
- tar -czf release/treebird-static-files-latest-`git rev-parse HEAD`.tar.gz treebird-latest/ treebird.nginx
|
|
- docker save treebird:latest | gzip > release/treebird-latest-`git rev-parse HEAD`.tar.gz
|
|
- docker run --rm -e DRONE_BUILD_EVENT=tag -e PLUGIN_BASE_URL=https://git.freecumextremist.com/ -e PLUGIN_API_KEY=$APIKEY -e PLUGIN_FILES=release/* -e DRONE_REPO_OWNER=icscarythings -e DRONE_REPO_NAME=treebird-docker -v $(pwd):$(pwd) -w $(pwd) plugins/gitea-release
|