fix(drone): add type, fix pull, remove group (#1355)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1355 Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de> Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
321a8f7e2b
commit
508a3157e2
74
.drone.yml
74
.drone.yml
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: testing
|
name: testing
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
@ -111,7 +112,7 @@ steps:
|
|||||||
# compiling the same magefile at the same time. It's also faster if each step does not need to compile it first.
|
# compiling the same magefile at the same time. It's also faster if each step does not need to compile it first.
|
||||||
- name: mage
|
- name: mage
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
commands:
|
commands:
|
||||||
@ -122,7 +123,7 @@ steps:
|
|||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
depends_on: [ mage ]
|
depends_on: [ mage ]
|
||||||
@ -133,7 +134,7 @@ steps:
|
|||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
image: golang:1.19-alpine
|
image: golang:1.19-alpine
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
depends_on: [ build ]
|
depends_on: [ build ]
|
||||||
@ -147,7 +148,7 @@ steps:
|
|||||||
|
|
||||||
- name: test-migration-prepare
|
- name: test-migration-prepare
|
||||||
image: kolaente/toolbox:latest
|
image: kolaente/toolbox:latest
|
||||||
pull: true
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
# Get the latest version
|
# Get the latest version
|
||||||
- wget https://dl.vikunja.io/api/unstable/vikunja-unstable-linux-amd64-full.zip -q -O vikunja-latest.zip
|
- wget https://dl.vikunja.io/api/unstable/vikunja-unstable-linux-amd64-full.zip -q -O vikunja-latest.zip
|
||||||
@ -155,7 +156,7 @@ steps:
|
|||||||
|
|
||||||
- name: test-migration-sqlite
|
- name: test-migration-sqlite
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
depends_on: [ test-migration-prepare, build ]
|
depends_on: [ test-migration-prepare, build ]
|
||||||
environment:
|
environment:
|
||||||
VIKUNJA_DATABASE_TYPE: sqlite
|
VIKUNJA_DATABASE_TYPE: sqlite
|
||||||
@ -174,7 +175,7 @@ steps:
|
|||||||
|
|
||||||
- name: test-migration-mysql
|
- name: test-migration-mysql
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
depends_on: [ test-migration-prepare, build ]
|
depends_on: [ test-migration-prepare, build ]
|
||||||
environment:
|
environment:
|
||||||
VIKUNJA_DATABASE_TYPE: mysql
|
VIKUNJA_DATABASE_TYPE: mysql
|
||||||
@ -193,7 +194,7 @@ steps:
|
|||||||
|
|
||||||
- name: test-migration-psql
|
- name: test-migration-psql
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
depends_on: [ test-migration-prepare, build ]
|
depends_on: [ test-migration-prepare, build ]
|
||||||
environment:
|
environment:
|
||||||
VIKUNJA_DATABASE_TYPE: postgres
|
VIKUNJA_DATABASE_TYPE: postgres
|
||||||
@ -213,7 +214,7 @@ steps:
|
|||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
commands:
|
commands:
|
||||||
@ -224,7 +225,7 @@ steps:
|
|||||||
|
|
||||||
- name: test-sqlite
|
- name: test-sqlite
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
VIKUNJA_TESTS_USE_CONFIG: 1
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
||||||
@ -241,7 +242,7 @@ steps:
|
|||||||
|
|
||||||
- name: test-mysql
|
- name: test-mysql
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
VIKUNJA_TESTS_USE_CONFIG: 1
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
||||||
@ -258,7 +259,7 @@ steps:
|
|||||||
|
|
||||||
- name: test-postgres
|
- name: test-postgres
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
VIKUNJA_TESTS_USE_CONFIG: 1
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
||||||
@ -276,7 +277,7 @@ steps:
|
|||||||
|
|
||||||
- name: integration-test
|
- name: integration-test
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
commands:
|
commands:
|
||||||
@ -287,7 +288,7 @@ steps:
|
|||||||
|
|
||||||
- name: integration-test-sqlite
|
- name: integration-test-sqlite
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
VIKUNJA_TESTS_USE_CONFIG: 1
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
||||||
@ -304,7 +305,7 @@ steps:
|
|||||||
|
|
||||||
- name: integration-test-mysql
|
- name: integration-test-mysql
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
VIKUNJA_TESTS_USE_CONFIG: 1
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
||||||
@ -321,7 +322,7 @@ steps:
|
|||||||
|
|
||||||
- name: integration-test-postgres
|
- name: integration-test-postgres
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
VIKUNJA_TESTS_USE_CONFIG: 1
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
||||||
@ -343,6 +344,7 @@ steps:
|
|||||||
########
|
########
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: release
|
name: release
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -368,7 +370,7 @@ steps:
|
|||||||
# compiling the same magefile at the same time. It's also faster if each step does not need to compile it first.
|
# compiling the same magefile at the same time. It's also faster if each step does not need to compile it first.
|
||||||
- name: mage
|
- name: mage
|
||||||
image: vikunja/golang-build:latest
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
GOPROXY: 'https://goproxy.kolaente.de'
|
GOPROXY: 'https://goproxy.kolaente.de'
|
||||||
commands:
|
commands:
|
||||||
@ -378,7 +380,7 @@ steps:
|
|||||||
|
|
||||||
- name: before-static-build
|
- name: before-static-build
|
||||||
image: techknowlogick/xgo:latest
|
image: techknowlogick/xgo:latest
|
||||||
pull: true
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- export PATH=$PATH:$GOPATH/bin
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- go install github.com/magefile/mage
|
- go install github.com/magefile/mage
|
||||||
@ -387,7 +389,7 @@ steps:
|
|||||||
|
|
||||||
- name: static-build-windows
|
- name: static-build-windows
|
||||||
image: techknowlogick/xgo:latest
|
image: techknowlogick/xgo:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
# This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why.
|
# This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why.
|
||||||
# Leaving this here until we know how to resolve this properly.
|
# Leaving this here until we know how to resolve this properly.
|
||||||
@ -400,7 +402,7 @@ steps:
|
|||||||
|
|
||||||
- name: static-build-linux
|
- name: static-build-linux
|
||||||
image: techknowlogick/xgo:latest
|
image: techknowlogick/xgo:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
# This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why.
|
# This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why.
|
||||||
# Leaving this here until we know how to resolve this properly.
|
# Leaving this here until we know how to resolve this properly.
|
||||||
@ -413,7 +415,7 @@ steps:
|
|||||||
|
|
||||||
- name: static-build-darwin
|
- name: static-build-darwin
|
||||||
image: techknowlogick/xgo:latest
|
image: techknowlogick/xgo:latest
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
# This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why.
|
# This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why.
|
||||||
# Leaving this here until we know how to resolve this properly.
|
# Leaving this here until we know how to resolve this properly.
|
||||||
@ -426,7 +428,7 @@ steps:
|
|||||||
|
|
||||||
- name: after-build-compress
|
- name: after-build-compress
|
||||||
image: kolaente/upx
|
image: kolaente/upx
|
||||||
pull: true
|
pull: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- static-build-windows
|
- static-build-windows
|
||||||
- static-build-linux
|
- static-build-linux
|
||||||
@ -436,7 +438,7 @@ steps:
|
|||||||
|
|
||||||
- name: after-build-static
|
- name: after-build-static
|
||||||
image: techknowlogick/xgo:latest
|
image: techknowlogick/xgo:latest
|
||||||
pull: true
|
pull: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- after-build-compress
|
- after-build-compress
|
||||||
commands:
|
commands:
|
||||||
@ -448,7 +450,7 @@ steps:
|
|||||||
|
|
||||||
- name: sign-release
|
- name: sign-release
|
||||||
image: plugins/gpgsign:1
|
image: plugins/gpgsign:1
|
||||||
pull: true
|
pull: always
|
||||||
depends_on: [ after-build-static ]
|
depends_on: [ after-build-static ]
|
||||||
settings:
|
settings:
|
||||||
key:
|
key:
|
||||||
@ -462,7 +464,7 @@ steps:
|
|||||||
# Push the releases to our pseudo-s3-bucket
|
# Push the releases to our pseudo-s3-bucket
|
||||||
- name: release-latest
|
- name: release-latest
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
pull: true
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
bucket: vikunja-releases
|
bucket: vikunja-releases
|
||||||
access_key:
|
access_key:
|
||||||
@ -484,7 +486,7 @@ steps:
|
|||||||
|
|
||||||
- name: release-version
|
- name: release-version
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
pull: true
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
bucket: vikunja-releases
|
bucket: vikunja-releases
|
||||||
access_key:
|
access_key:
|
||||||
@ -505,7 +507,7 @@ steps:
|
|||||||
# Build os packages and push it to our bucket
|
# Build os packages and push it to our bucket
|
||||||
- name: build-os-packages-unstable
|
- name: build-os-packages-unstable
|
||||||
image: goreleaser/nfpm:v2.22.2
|
image: goreleaser/nfpm:v2.22.2
|
||||||
pull: true
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- apk add git go
|
- apk add git go
|
||||||
- ./mage-static release:packages
|
- ./mage-static release:packages
|
||||||
@ -521,7 +523,7 @@ steps:
|
|||||||
|
|
||||||
- name: build-os-packages-version
|
- name: build-os-packages-version
|
||||||
image: goreleaser/nfpm:v2.22.2
|
image: goreleaser/nfpm:v2.22.2
|
||||||
pull: true
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- apk add git go
|
- apk add git go
|
||||||
- ./mage-static release:packages
|
- ./mage-static release:packages
|
||||||
@ -536,7 +538,7 @@ steps:
|
|||||||
# Push the os releases to our pseudo-s3-bucket
|
# Push the os releases to our pseudo-s3-bucket
|
||||||
- name: release-os-latest
|
- name: release-os-latest
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
pull: true
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
bucket: vikunja-releases
|
bucket: vikunja-releases
|
||||||
access_key:
|
access_key:
|
||||||
@ -558,7 +560,7 @@ steps:
|
|||||||
|
|
||||||
- name: release-os-version
|
- name: release-os-version
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
pull: true
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
bucket: vikunja-releases
|
bucket: vikunja-releases
|
||||||
access_key:
|
access_key:
|
||||||
@ -578,6 +580,7 @@ steps:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
name: deploy-docs
|
name: deploy-docs
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
@ -596,8 +599,7 @@ trigger:
|
|||||||
steps:
|
steps:
|
||||||
- name: theme
|
- name: theme
|
||||||
image: kolaente/toolbox
|
image: kolaente/toolbox
|
||||||
pull: true
|
pull: always
|
||||||
group: build-static
|
|
||||||
commands:
|
commands:
|
||||||
- mkdir docs/themes/vikunja -p
|
- mkdir docs/themes/vikunja -p
|
||||||
- cd docs/themes/vikunja
|
- cd docs/themes/vikunja
|
||||||
@ -606,7 +608,7 @@ steps:
|
|||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: klakegg/hugo:0.104.2
|
image: klakegg/hugo:0.104.2
|
||||||
pull: true
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- cd docs
|
- cd docs
|
||||||
- hugo
|
- hugo
|
||||||
@ -614,7 +616,7 @@ steps:
|
|||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
pull: true
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
@ -646,7 +648,7 @@ steps:
|
|||||||
- name: docker-unstable
|
- name: docker-unstable
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
privileged: true
|
privileged: true
|
||||||
pull: true
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
@ -668,7 +670,7 @@ steps:
|
|||||||
- name: docker-release
|
- name: docker-release
|
||||||
image: thegeeklab/drone-docker-buildx
|
image: thegeeklab/drone-docker-buildx
|
||||||
privileged: true
|
privileged: true
|
||||||
pull: true
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
@ -719,6 +721,6 @@ steps:
|
|||||||
- failure
|
- failure
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: f8ce17f7158088a124039f579ba10364788d306feac3feeb51689dce440d6213
|
hmac: 2c7e3250304826cb62d54db4e6d2638bc8f182097306fb93772d07d7bc3cf7e8
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user