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:
ICScaryThings 2022-07-16 13:48:10 -04:00
parent 65b48ca9f4
commit 5d80063307

View file

@ -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