mirror of
https://git.freecumextremist.com/icscarythings/treebird-docker.git
synced 2024-11-05 04:14:12 +00:00
Fix drone yaml
1. Write docker image to release folder so it actually gets released :derp: 2. Add a static files tar for use with treebird on nginx or whatever server
This commit is contained in:
parent
65b48ca9f4
commit
5d80063307
1 changed files with 5 additions and 15 deletions
20
.drone.yml
20
.drone.yml
|
@ -14,18 +14,8 @@ steps:
|
|||
from_secret: release_api_key
|
||||
commands:
|
||||
- ./build_container.sh
|
||||
- mkdir images/
|
||||
- docker save treebird:latest | gzip > 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=images/* -e DRONE_REPO_OWNER=icscarythings -e DRONE_REPO_NAME=treebird-docker -v $(pwd):$(pwd) -w $(pwd) plugins/gitea-release
|
||||
|
||||
#- name: Make Gitea Release
|
||||
# image: plugins/gitea-release
|
||||
# depends_on:
|
||||
# - build
|
||||
# settings:
|
||||
# api_key:
|
||||
# from_secret: release_api_key
|
||||
# base_url: https://git.freecumextremist.com/
|
||||
# files:
|
||||
# - images/*
|
||||
# -e DRONE_BUILD_EVENT=tag
|
||||
- mkdir release/
|
||||
- rm -v treebird-latest/treebird
|
||||
- tar -czf release/treebird-static-files-latest-`git rev-parse HEAD`.tar.gz treebird-latest/
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue