Added debugging for ci
This commit is contained in:
parent
07bc4f3f01
commit
3ebf0da1b9
1 changed files with 74 additions and 70 deletions
144
.drone1.yml
144
.drone1.yml
|
@ -123,25 +123,24 @@ steps:
|
||||||
- make release-windows
|
- make release-windows
|
||||||
depends_on: [ before-static-build ]
|
depends_on: [ before-static-build ]
|
||||||
|
|
||||||
- name: static-build-linux
|
# - name: static-build-linux
|
||||||
image: karalabe/xgo-latest:latest
|
# image: karalabe/xgo-latest:latest
|
||||||
pull: true
|
# pull: true
|
||||||
environment:
|
# environment:
|
||||||
TAGS: bindata sqlite
|
# TAGS: bindata sqlite
|
||||||
GOPATH: /srv/app
|
# GOPATH: /srv/app
|
||||||
commands:
|
# commands:
|
||||||
- make release-linux
|
# - make release-linux
|
||||||
depends_on: [ before-static-build ]
|
# depends_on: [ before-static-build ]
|
||||||
|
#
|
||||||
- name: static-build-darwin
|
# - name: static-build-darwin
|
||||||
image: karalabe/xgo-latest:latest
|
# image: karalabe/xgo-latest:latest
|
||||||
pull: true
|
# pull: true
|
||||||
environment:
|
# environment:
|
||||||
TAGS: bindata sqlite
|
# TAGS: bindata sqlite# GOPATH: /srv/app
|
||||||
GOPATH: /srv/app
|
# commands:
|
||||||
commands:
|
# - make release-darwin
|
||||||
- make release-darwin
|
# depends_on: [ before-static-build ]
|
||||||
depends_on: [ before-static-build ]
|
|
||||||
|
|
||||||
- name: after-build-static
|
- name: after-build-static
|
||||||
image: karalabe/xgo-latest:latest
|
image: karalabe/xgo-latest:latest
|
||||||
|
@ -169,6 +168,15 @@ steps:
|
||||||
- dist/zip/*
|
- dist/zip/*
|
||||||
detach_sign: true
|
detach_sign: true
|
||||||
|
|
||||||
|
- name: debugging
|
||||||
|
image: alpine
|
||||||
|
pull: true
|
||||||
|
depends_on: [ sign-release ]
|
||||||
|
commands:
|
||||||
|
- ls
|
||||||
|
- ls dist/zip
|
||||||
|
- ls dist
|
||||||
|
|
||||||
# Push the releases to our pseudo-s3-bucket
|
# Push the releases to our pseudo-s3-bucket
|
||||||
- name: release-version
|
- name: release-version
|
||||||
image: plugins/s3:1
|
image: plugins/s3:1
|
||||||
|
@ -191,10 +199,6 @@ steps:
|
||||||
- name: release-latest
|
- name: release-latest
|
||||||
image: plugins/s3:1
|
image: plugins/s3:1
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
|
||||||
- ls
|
|
||||||
- ls dist/zip
|
|
||||||
- ls dist
|
|
||||||
settings:
|
settings:
|
||||||
bucket: vikunja
|
bucket: vikunja
|
||||||
access_key:
|
access_key:
|
||||||
|
@ -210,50 +214,50 @@ steps:
|
||||||
when:
|
when:
|
||||||
event: [ push ]
|
event: [ push ]
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
|
#
|
||||||
# Build the docker image and push it to docker hub
|
## Build the docker image and push it to docker hub
|
||||||
- name: docker
|
# - name: docker
|
||||||
image: plugins/docker
|
# image: plugins/docker
|
||||||
pull: true
|
# pull: true
|
||||||
settings:
|
# settings:
|
||||||
username:
|
# username:
|
||||||
from_secret: docker_username
|
# from_secret: docker_username
|
||||||
password:
|
# password:
|
||||||
from_secret: docker_password
|
# from_secret: docker_password
|
||||||
repo: vikunja/api
|
# repo: vikunja/api
|
||||||
auto_tag: true
|
# auto_tag: true
|
||||||
|
#
|
||||||
# Update the instance on try.vikunja.io
|
## Update the instance on try.vikunja.io
|
||||||
- name: rancher
|
# - name: rancher
|
||||||
image: peloton/drone-rancher
|
# image: peloton/drone-rancher
|
||||||
settings:
|
# settings:
|
||||||
url: http://server01.kolaente.de:8080/v1
|
# url: http://server01.kolaente.de:8080/v1
|
||||||
access_key:
|
# access_key:
|
||||||
from_secret: RANCHER_ACCESS_KEY
|
# from_secret: RANCHER_ACCESS_KEY
|
||||||
secret_key:
|
# secret_key:
|
||||||
from_secret: RANCHER_SECRET_KEY
|
# from_secret: RANCHER_SECRET_KEY
|
||||||
service: vikunja-dev/api
|
# service: vikunja-dev/api
|
||||||
docker_image: vikunja/api
|
# docker_image: vikunja/api
|
||||||
confirm: true
|
# confirm: true
|
||||||
depends_on: [ docker ]
|
# depends_on: [ docker ]
|
||||||
|
#
|
||||||
# Tell people vikunja was updated
|
## Tell people vikunja was updated
|
||||||
- name: telegram
|
# - name: telegram
|
||||||
image: appleboy/drone-telegram
|
# image: appleboy/drone-telegram
|
||||||
settings:
|
# settings:
|
||||||
token:
|
# token:
|
||||||
from_secret: TELEGRAM_TOKEN
|
# from_secret: TELEGRAM_TOKEN
|
||||||
to:
|
# to:
|
||||||
from_secret: TELEGRAM_TO
|
# from_secret: TELEGRAM_TO
|
||||||
message: >
|
# message: >
|
||||||
{{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}}
|
# {{repo.owner}}/{{repo.name}}: \[{{build.status}}] Build {{build.number}}
|
||||||
{{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}`
|
# {{commit.author}} pushed to {{commit.branch}} {{commit.sha}}: `{{commit.message}}`
|
||||||
Build started at {{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}} finished at {{datetime build.finished "2006-Jan-02T15:04:05Z" "GMT+2"}}.
|
# Build started at {{datetime build.started "2006-Jan-02T15:04:05Z" "GMT+2"}} finished at {{datetime build.finished "2006-Jan-02T15:04:05Z" "GMT+2"}}.
|
||||||
depends_on:
|
# depends_on:
|
||||||
- rancher
|
# - rancher
|
||||||
- release-version
|
# - release-version
|
||||||
- release-latest
|
# - release-latest
|
||||||
when:
|
# when:
|
||||||
status:
|
# status:
|
||||||
- success
|
# - success
|
||||||
- failure
|
# - failure
|
Loading…
Reference in a new issue