mirror of
https://git.freecumextremist.com/icscarythings/treebird-docker.git
synced 2024-11-04 21:14:11 +00:00
31 lines
830 B
YAML
31 lines
830 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 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
|