treebird-docker/.drone.yml

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