-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a40879a
commit b0d3165
Showing
2 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
kind: pipeline | ||
type: docker | ||
name: default | ||
|
||
steps: | ||
- name: build | ||
image: docker:dind | ||
volumes: | ||
- name: dockersock | ||
path: /var/run | ||
- name: build | ||
path: /build | ||
commands: | ||
- echo "Building gotify version $GOTIFY_VERSION" | ||
- sleep 5 # give docker enough time to start | ||
- docker ps -a | ||
- apk --no-cache add build-base git go | ||
- export PATH=$PATH:$HOME/go/bin | ||
- make -e build | ||
- ls build | ||
- cp build/*.so /build | ||
- name: publish | ||
image: tystuyfzand/drone-github-release | ||
volumes: | ||
- name: build | ||
path: /build | ||
settings: | ||
api_key: | ||
from_secret: github_api_key | ||
files: | ||
- /build/*.so | ||
title: "SMTP for Gotify ${GOTIFY_VERSION}" | ||
tag_name: "latest-gotify-${GOTIFY_VERSION}" | ||
checksum: | ||
- md5 | ||
- sha1 | ||
- sha256 | ||
- sha512 | ||
|
||
services: | ||
- name: docker | ||
image: docker:dind | ||
privileged: true | ||
volumes: | ||
- name: dockersock | ||
path: /var/run | ||
|
||
volumes: | ||
- name: dockersock | ||
temp: {} | ||
- name: build | ||
temp: {} | ||
|
||
trigger: | ||
event: | ||
- custom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters