2021-08-11 23:28:21 +02:00
|
|
|
---
|
2019-01-11 23:46:51 +01:00
|
|
|
kind: pipeline
|
|
|
|
name: testing
|
|
|
|
|
|
|
|
workspace:
|
2019-04-22 14:20:25 +02:00
|
|
|
base: /go
|
2019-01-11 23:46:51 +01:00
|
|
|
path: src/code.vikunja.io/api
|
|
|
|
|
2021-08-12 00:03:04 +02:00
|
|
|
volumes:
|
|
|
|
- name: tmp-sqlite-unit
|
|
|
|
temp:
|
|
|
|
medium: memory
|
|
|
|
- name: tmp-sqlite-integration
|
|
|
|
temp:
|
|
|
|
medium: memory
|
|
|
|
- name: tmp-sqlite-migration
|
|
|
|
temp:
|
|
|
|
medium: memory
|
|
|
|
- name: tmp-mysql-unit
|
|
|
|
temp:
|
|
|
|
medium: memory
|
|
|
|
- name: tmp-mysql-integration
|
|
|
|
temp:
|
|
|
|
medium: memory
|
|
|
|
- name: tmp-mysql-migration
|
|
|
|
temp:
|
|
|
|
medium: memory
|
|
|
|
- name: tmp-postgres-unit
|
|
|
|
temp:
|
|
|
|
medium: memory
|
|
|
|
- name: tmp-postgres-integration
|
|
|
|
temp:
|
|
|
|
medium: memory
|
|
|
|
- name: tmp-postgres-migration
|
|
|
|
temp:
|
|
|
|
medium: memory
|
|
|
|
|
|
|
|
|
2019-01-11 23:46:51 +01:00
|
|
|
services:
|
2020-02-16 22:42:04 +01:00
|
|
|
- name: test-mysql-unit
|
2019-04-21 20:18:17 +02:00
|
|
|
image: mariadb:10
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: vikunjatest
|
|
|
|
MYSQL_DATABASE: vikunjatest
|
2021-08-12 00:03:04 +02:00
|
|
|
volumes:
|
|
|
|
- name: tmp-mysql-unit
|
|
|
|
path: /var/lib/mysql
|
2020-02-16 22:42:04 +01:00
|
|
|
- name: test-mysql-integration
|
2019-01-11 23:46:51 +01:00
|
|
|
image: mariadb:10
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: vikunjatest
|
|
|
|
MYSQL_DATABASE: vikunjatest
|
2021-08-12 00:03:04 +02:00
|
|
|
volumes:
|
|
|
|
- name: tmp-mysql-integration
|
|
|
|
path: /var/lib/mysql
|
2020-06-13 22:45:18 +02:00
|
|
|
- name: test-mysql-migration
|
|
|
|
image: mariadb:10
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: vikunjatest
|
|
|
|
MYSQL_DATABASE: vikunjatest
|
2021-08-12 00:03:04 +02:00
|
|
|
volumes:
|
|
|
|
- name: tmp-mysql-migration
|
|
|
|
path: /var/lib/mysql
|
2020-02-16 22:42:04 +01:00
|
|
|
- name: test-postgres-unit
|
2021-10-16 16:31:04 +02:00
|
|
|
image: postgres:14
|
2020-02-16 22:42:04 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: vikunjatest
|
|
|
|
POSTGRES_DB: vikunjatest
|
2021-08-12 00:03:04 +02:00
|
|
|
volumes:
|
|
|
|
- name: tmp-postgres-unit
|
|
|
|
path: /var/lib/postgresql/data
|
|
|
|
commands:
|
|
|
|
- docker-entrypoint.sh -c fsync=off -c full_page_writes=off # turns of wal
|
2020-02-16 22:42:04 +01:00
|
|
|
- name: test-postgres-integration
|
2021-10-16 16:31:04 +02:00
|
|
|
image: postgres:14
|
2020-02-16 22:42:04 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: vikunjatest
|
|
|
|
POSTGRES_DB: vikunjatest
|
2021-08-12 00:03:04 +02:00
|
|
|
volumes:
|
|
|
|
- name: tmp-postgres-integration
|
|
|
|
path: /var/lib/postgresql/data
|
|
|
|
commands:
|
|
|
|
- docker-entrypoint.sh -c fsync=off -c full_page_writes=off # turns of wal
|
2020-06-13 22:45:18 +02:00
|
|
|
- name: test-postgres-migration
|
2021-10-16 16:31:04 +02:00
|
|
|
image: postgres:14
|
2020-06-13 22:45:18 +02:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: vikunjatest
|
|
|
|
POSTGRES_DB: vikunjatest
|
2021-08-12 00:03:04 +02:00
|
|
|
volumes:
|
|
|
|
- name: tmp-postgres-migration
|
|
|
|
path: /var/lib/postgresql/data
|
|
|
|
commands:
|
|
|
|
- docker-entrypoint.sh -c fsync=off -c full_page_writes=off # turns of wal
|
2019-01-11 23:46:51 +01:00
|
|
|
|
2019-07-18 22:28:56 +02:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
include:
|
2021-02-10 18:50:15 +01:00
|
|
|
- main
|
2019-07-18 22:28:56 +02:00
|
|
|
event:
|
|
|
|
include:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
2019-01-11 23:46:51 +01:00
|
|
|
steps:
|
|
|
|
- name: fetch-tags
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
|
|
|
|
2020-09-03 17:13:19 +02:00
|
|
|
# We're statically compiling the magefile to avoid race condition issues caused by multiple pipeline steps
|
|
|
|
# compiling the same magefile at the same time. It's also faster if each step does not need to compile it first.
|
|
|
|
- name: mage
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
|
|
|
commands:
|
|
|
|
- mage -compile ./mage-static
|
2021-02-10 20:49:20 +01:00
|
|
|
- env
|
2020-09-03 17:13:19 +02:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2019-01-11 23:46:51 +01:00
|
|
|
- name: build
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
2019-05-22 19:48:48 +02:00
|
|
|
environment:
|
2020-06-28 14:00:10 +02:00
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2020-09-03 17:13:19 +02:00
|
|
|
depends_on: [ mage ]
|
2020-06-13 22:45:18 +02:00
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static build:build
|
2020-06-13 22:45:18 +02:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
|
|
|
- name: lint
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
2020-06-28 14:00:10 +02:00
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2020-06-13 22:45:18 +02:00
|
|
|
depends_on: [ build ]
|
2019-01-11 23:46:51 +01:00
|
|
|
commands:
|
2022-08-03 15:20:11 +02:00
|
|
|
- wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.47.3
|
2021-02-14 22:40:08 +01:00
|
|
|
- ./mage-static check:all
|
2020-06-13 22:45:18 +02:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2021-02-13 16:58:12 +01:00
|
|
|
- name: test-migration-prepare
|
|
|
|
image: kolaente/toolbox:latest
|
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
# Get the latest version
|
|
|
|
- wget https://dl.vikunja.io/api/unstable/vikunja-unstable-linux-amd64-full.zip -q -O vikunja-latest.zip
|
|
|
|
- unzip vikunja-latest.zip vikunja-unstable-linux-amd64
|
|
|
|
|
|
|
|
- name: test-migration-sqlite
|
2022-08-03 12:57:20 +02:00
|
|
|
image: vikunja/golang-build:latest
|
2021-02-13 16:58:12 +01:00
|
|
|
pull: true
|
|
|
|
depends_on: [ test-migration-prepare, build ]
|
|
|
|
environment:
|
|
|
|
VIKUNJA_DATABASE_TYPE: sqlite
|
2021-08-12 00:03:04 +02:00
|
|
|
VIKUNJA_DATABASE_PATH: /db/vikunja-migration-test.db
|
2021-02-13 16:58:12 +01:00
|
|
|
VIKUNJA_LOG_DATABASE: stdout
|
|
|
|
VIKUNJA_LOG_DATABASELEVEL: debug
|
2021-08-12 00:03:04 +02:00
|
|
|
volumes:
|
|
|
|
- name: tmp-sqlite-migration
|
|
|
|
path: /db
|
2021-02-13 16:58:12 +01:00
|
|
|
commands:
|
|
|
|
- ./vikunja-unstable-linux-amd64 migrate
|
|
|
|
# Run the migrations from the binary build in the step before
|
|
|
|
- ./vikunja migrate
|
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
|
|
|
- name: test-migration-mysql
|
2022-08-03 12:57:20 +02:00
|
|
|
image: vikunja/golang-build:latest
|
2021-02-13 16:58:12 +01:00
|
|
|
pull: true
|
|
|
|
depends_on: [ test-migration-prepare, build ]
|
|
|
|
environment:
|
|
|
|
VIKUNJA_DATABASE_TYPE: mysql
|
|
|
|
VIKUNJA_DATABASE_HOST: test-mysql-migration
|
|
|
|
VIKUNJA_DATABASE_USER: root
|
|
|
|
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
|
|
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
|
|
|
VIKUNJA_LOG_DATABASE: stdout
|
|
|
|
VIKUNJA_LOG_DATABASELEVEL: debug
|
|
|
|
commands:
|
|
|
|
- ./vikunja-unstable-linux-amd64 migrate
|
|
|
|
# Run the migrations from the binary build in the step before
|
|
|
|
- ./vikunja migrate
|
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
|
|
|
- name: test-migration-psql
|
2022-08-03 12:57:20 +02:00
|
|
|
image: vikunja/golang-build:latest
|
2021-02-13 16:58:12 +01:00
|
|
|
pull: true
|
|
|
|
depends_on: [ test-migration-prepare, build ]
|
|
|
|
environment:
|
|
|
|
VIKUNJA_DATABASE_TYPE: postgres
|
|
|
|
VIKUNJA_DATABASE_HOST: test-postgres-migration
|
|
|
|
VIKUNJA_DATABASE_USER: postgres
|
|
|
|
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
|
|
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
|
|
|
VIKUNJA_DATABASE_SSLMODE: disable
|
|
|
|
VIKUNJA_LOG_DATABASE: stdout
|
|
|
|
VIKUNJA_LOG_DATABASELEVEL: debug
|
|
|
|
commands:
|
|
|
|
- ./vikunja-unstable-linux-amd64 migrate
|
|
|
|
# Run the migrations from the binary build in the step before
|
|
|
|
- ./vikunja migrate
|
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
2019-01-11 23:46:51 +01:00
|
|
|
|
|
|
|
- name: test
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
2020-06-28 14:00:10 +02:00
|
|
|
environment:
|
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2019-01-11 23:46:51 +01:00
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static test:unit
|
|
|
|
depends_on: [ fetch-tags, mage ]
|
2019-01-11 23:46:51 +01:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
|
|
|
- name: test-sqlite
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
2020-06-28 14:00:10 +02:00
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2019-01-11 23:46:51 +01:00
|
|
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
|
|
|
VIKUNJA_DATABASE_TYPE: sqlite
|
2021-08-12 00:03:04 +02:00
|
|
|
VIKUNJA_DATABASE_PATH: /db/vikunja-test.db
|
|
|
|
volumes:
|
|
|
|
- name: tmp-sqlite-unit
|
|
|
|
path: /db
|
2019-01-11 23:46:51 +01:00
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static test:unit
|
|
|
|
depends_on: [ fetch-tags, mage ]
|
2019-01-11 23:46:51 +01:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
|
|
|
- name: test-mysql
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
2020-06-28 14:00:10 +02:00
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2019-01-11 23:46:51 +01:00
|
|
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
|
|
|
VIKUNJA_DATABASE_TYPE: mysql
|
2020-02-16 22:42:04 +01:00
|
|
|
VIKUNJA_DATABASE_HOST: test-mysql-unit
|
2019-01-11 23:46:51 +01:00
|
|
|
VIKUNJA_DATABASE_USER: root
|
|
|
|
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
|
|
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static test:unit
|
|
|
|
depends_on: [ fetch-tags, mage ]
|
2019-01-11 23:46:51 +01:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2020-02-16 22:42:04 +01:00
|
|
|
- name: test-postgres
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
2020-06-28 14:00:10 +02:00
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2020-02-16 22:42:04 +01:00
|
|
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
|
|
|
VIKUNJA_DATABASE_TYPE: postgres
|
|
|
|
VIKUNJA_DATABASE_HOST: test-postgres-unit
|
|
|
|
VIKUNJA_DATABASE_USER: postgres
|
|
|
|
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
|
|
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
|
|
|
VIKUNJA_DATABASE_SSLMODE: disable
|
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static test:unit
|
|
|
|
depends_on: [ fetch-tags, mage ]
|
2020-02-16 22:42:04 +01:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2019-04-21 20:18:17 +02:00
|
|
|
- name: integration-test
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
2020-06-28 14:00:10 +02:00
|
|
|
environment:
|
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2019-04-21 20:18:17 +02:00
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static test:integration
|
|
|
|
depends_on: [ fetch-tags, mage ]
|
2019-04-21 20:18:17 +02:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
|
|
|
- name: integration-test-sqlite
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
2020-06-28 14:00:10 +02:00
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2019-04-21 20:18:17 +02:00
|
|
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
|
|
|
VIKUNJA_DATABASE_TYPE: sqlite
|
2021-08-12 00:03:04 +02:00
|
|
|
VIKUNJA_DATABASE_PATH: /db/vikunja-test.db
|
|
|
|
volumes:
|
|
|
|
- name: tmp-sqlite-integration
|
|
|
|
path: /db
|
2019-04-21 20:18:17 +02:00
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static test:integration
|
|
|
|
depends_on: [ fetch-tags, mage ]
|
2019-04-21 20:18:17 +02:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
|
|
|
- name: integration-test-mysql
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
2020-06-28 14:00:10 +02:00
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2019-04-21 20:18:17 +02:00
|
|
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
|
|
|
VIKUNJA_DATABASE_TYPE: mysql
|
2020-02-16 22:42:04 +01:00
|
|
|
VIKUNJA_DATABASE_HOST: test-mysql-integration
|
2019-04-21 20:18:17 +02:00
|
|
|
VIKUNJA_DATABASE_USER: root
|
|
|
|
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
|
|
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static test:integration
|
|
|
|
depends_on: [ fetch-tags, mage ]
|
2019-04-21 20:18:17 +02:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2020-02-16 22:42:04 +01:00
|
|
|
- name: integration-test-postgres
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
2020-06-28 14:00:10 +02:00
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
2020-02-16 22:42:04 +01:00
|
|
|
VIKUNJA_TESTS_USE_CONFIG: 1
|
|
|
|
VIKUNJA_DATABASE_TYPE: postgres
|
|
|
|
VIKUNJA_DATABASE_HOST: test-postgres-integration
|
|
|
|
VIKUNJA_DATABASE_USER: postgres
|
|
|
|
VIKUNJA_DATABASE_PASSWORD: vikunjatest
|
|
|
|
VIKUNJA_DATABASE_DATABASE: vikunjatest
|
|
|
|
VIKUNJA_DATABASE_SSLMODE: disable
|
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static test:integration
|
|
|
|
depends_on: [ fetch-tags, mage ]
|
2020-02-16 22:42:04 +01:00
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2019-01-11 23:46:51 +01:00
|
|
|
---
|
2019-01-16 23:07:43 +01:00
|
|
|
########
|
2020-06-22 19:23:52 +02:00
|
|
|
# Build a release when tagging
|
2019-01-16 23:07:43 +01:00
|
|
|
########
|
|
|
|
|
2019-01-11 23:46:51 +01:00
|
|
|
kind: pipeline
|
2020-06-22 19:23:52 +02:00
|
|
|
name: release
|
2020-06-22 21:33:55 +02:00
|
|
|
|
2019-04-21 23:04:46 +02:00
|
|
|
depends_on:
|
|
|
|
- testing
|
2019-01-11 23:46:51 +01:00
|
|
|
|
|
|
|
workspace:
|
2019-04-22 14:20:25 +02:00
|
|
|
base: /go
|
2019-01-11 23:46:51 +01:00
|
|
|
path: src/code.vikunja.io/api
|
|
|
|
|
|
|
|
trigger:
|
2020-06-22 19:23:52 +02:00
|
|
|
ref:
|
2021-02-10 18:50:15 +01:00
|
|
|
- refs/heads/main
|
2020-06-22 19:23:52 +02:00
|
|
|
- "refs/tags/**"
|
2019-01-11 23:46:51 +01:00
|
|
|
|
|
|
|
steps:
|
2019-04-21 22:39:35 +02:00
|
|
|
# Needed to get the versions right as they depend on tags
|
|
|
|
- name: fetch-tags
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
|
|
|
|
2020-09-03 17:13:19 +02:00
|
|
|
# We're statically compiling the magefile to avoid race condition issues caused by multiple pipeline steps
|
|
|
|
# compiling the same magefile at the same time. It's also faster if each step does not need to compile it first.
|
|
|
|
- name: mage
|
|
|
|
image: vikunja/golang-build:latest
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
GOPROXY: 'https://goproxy.kolaente.de'
|
|
|
|
commands:
|
|
|
|
- mage -compile ./mage-static
|
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2019-01-11 23:46:51 +01:00
|
|
|
- name: before-static-build
|
2019-04-22 13:27:26 +02:00
|
|
|
image: techknowlogick/xgo:latest
|
2019-01-11 23:46:51 +01:00
|
|
|
pull: true
|
|
|
|
commands:
|
2019-04-22 14:02:18 +02:00
|
|
|
- export PATH=$PATH:$GOPATH/bin
|
2020-09-03 17:13:19 +02:00
|
|
|
- go install github.com/magefile/mage
|
|
|
|
- ./mage-static release:dirs
|
|
|
|
depends_on: [ fetch-tags, mage ]
|
2019-01-11 23:46:51 +01:00
|
|
|
|
|
|
|
- name: static-build-windows
|
2019-04-22 13:27:26 +02:00
|
|
|
image: techknowlogick/xgo:latest
|
2019-01-11 23:46:51 +01:00
|
|
|
pull: true
|
|
|
|
environment:
|
2019-04-27 11:41:28 +02:00
|
|
|
# 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.
|
|
|
|
GOPATH: /srv/app
|
2019-01-11 23:46:51 +01:00
|
|
|
commands:
|
2019-04-22 14:02:18 +02:00
|
|
|
- export PATH=$PATH:$GOPATH/bin
|
2020-09-03 17:13:19 +02:00
|
|
|
- go install github.com/magefile/mage
|
|
|
|
- ./mage-static release:windows
|
2019-01-11 23:46:51 +01:00
|
|
|
depends_on: [ before-static-build ]
|
|
|
|
|
2019-01-14 20:48:02 +01:00
|
|
|
- name: static-build-linux
|
2019-04-22 13:27:26 +02:00
|
|
|
image: techknowlogick/xgo:latest
|
2019-01-14 20:48:02 +01:00
|
|
|
pull: true
|
|
|
|
environment:
|
2019-04-27 11:41:28 +02:00
|
|
|
# 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.
|
|
|
|
GOPATH: /srv/app
|
2019-01-14 20:48:02 +01:00
|
|
|
commands:
|
2019-04-22 14:02:18 +02:00
|
|
|
- export PATH=$PATH:$GOPATH/bin
|
2020-09-03 17:13:19 +02:00
|
|
|
- go install github.com/magefile/mage
|
|
|
|
- ./mage-static release:linux
|
2019-01-14 20:48:02 +01:00
|
|
|
depends_on: [ before-static-build ]
|
|
|
|
|
|
|
|
- name: static-build-darwin
|
2019-04-22 13:27:26 +02:00
|
|
|
image: techknowlogick/xgo:latest
|
2019-01-14 20:48:02 +01:00
|
|
|
pull: true
|
|
|
|
environment:
|
2019-04-27 11:41:28 +02:00
|
|
|
# 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.
|
|
|
|
GOPATH: /srv/app
|
2019-01-14 20:48:02 +01:00
|
|
|
commands:
|
2019-04-22 14:31:46 +02:00
|
|
|
- export PATH=$PATH:$GOPATH/bin
|
2020-09-03 17:13:19 +02:00
|
|
|
- go install github.com/magefile/mage
|
|
|
|
- ./mage-static release:darwin
|
2019-01-14 20:48:02 +01:00
|
|
|
depends_on: [ before-static-build ]
|
2019-01-11 23:46:51 +01:00
|
|
|
|
2019-06-23 00:07:58 +02:00
|
|
|
- name: after-build-compress
|
|
|
|
image: kolaente/upx
|
2019-01-11 23:46:51 +01:00
|
|
|
pull: true
|
|
|
|
depends_on:
|
|
|
|
- static-build-windows
|
2019-01-14 20:48:02 +01:00
|
|
|
- static-build-linux
|
|
|
|
- static-build-darwin
|
2019-06-23 00:07:58 +02:00
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- ./mage-static release:compress
|
2019-06-23 00:07:58 +02:00
|
|
|
|
|
|
|
- name: after-build-static
|
|
|
|
image: techknowlogick/xgo:latest
|
|
|
|
pull: true
|
|
|
|
depends_on:
|
|
|
|
- after-build-compress
|
2019-01-11 23:46:51 +01:00
|
|
|
commands:
|
2020-09-03 17:13:19 +02:00
|
|
|
- go install github.com/magefile/mage
|
|
|
|
- ./mage-static release:copy
|
|
|
|
- ./mage-static release:check
|
|
|
|
- ./mage-static release:os-package
|
|
|
|
- ./mage-static release:zip
|
2019-01-11 23:46:51 +01:00
|
|
|
|
2019-01-12 23:58:17 +01:00
|
|
|
- name: sign-release
|
2019-01-13 01:07:10 +01:00
|
|
|
image: plugins/gpgsign:1
|
|
|
|
pull: true
|
2019-01-13 00:25:02 +01:00
|
|
|
depends_on: [ after-build-static ]
|
2019-01-12 23:58:17 +01:00
|
|
|
settings:
|
|
|
|
key:
|
|
|
|
from_secret: gpg_privkey
|
|
|
|
passphrase:
|
|
|
|
from_secret: gpg_password
|
|
|
|
files:
|
2019-01-13 00:17:45 +01:00
|
|
|
- dist/zip/*
|
2019-01-13 01:07:10 +01:00
|
|
|
detach_sign: true
|
2019-01-14 20:36:40 +01:00
|
|
|
|
2020-06-13 22:45:18 +02:00
|
|
|
# Push the releases to our pseudo-s3-bucket
|
2019-01-16 23:07:43 +01:00
|
|
|
- name: release-latest
|
2021-10-02 16:31:06 +02:00
|
|
|
image: plugins/s3
|
2019-01-11 23:46:51 +01:00
|
|
|
pull: true
|
|
|
|
settings:
|
2020-07-14 13:43:35 +02:00
|
|
|
bucket: vikunja-releases
|
2019-01-11 23:46:51 +01:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
2020-07-14 13:43:35 +02:00
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
2019-01-11 23:46:51 +01:00
|
|
|
path_style: true
|
|
|
|
strip_prefix: dist/zip/
|
|
|
|
source: dist/zip/*
|
2021-02-10 19:56:51 +01:00
|
|
|
target: /api/unstable/
|
2020-10-19 20:35:23 +02:00
|
|
|
when:
|
2020-07-14 14:45:16 +02:00
|
|
|
branch:
|
2021-02-10 18:50:15 +01:00
|
|
|
- main
|
2020-10-18 13:59:26 +02:00
|
|
|
event:
|
|
|
|
- push
|
2019-01-13 00:25:02 +01:00
|
|
|
depends_on: [ sign-release ]
|
2019-01-11 23:46:51 +01:00
|
|
|
|
2019-01-16 23:07:43 +01:00
|
|
|
- name: release-version
|
2021-10-02 16:31:06 +02:00
|
|
|
image: plugins/s3
|
2019-01-11 23:46:51 +01:00
|
|
|
pull: true
|
|
|
|
settings:
|
2020-07-14 13:43:35 +02:00
|
|
|
bucket: vikunja-releases
|
2019-01-11 23:46:51 +01:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
2020-07-14 13:43:35 +02:00
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
2019-01-11 23:46:51 +01:00
|
|
|
path_style: true
|
|
|
|
strip_prefix: dist/zip/
|
|
|
|
source: dist/zip/*
|
2020-03-01 22:51:50 +01:00
|
|
|
target: /api/${DRONE_TAG##v}/
|
2020-10-19 20:35:23 +02:00
|
|
|
when:
|
2020-10-18 13:59:26 +02:00
|
|
|
event:
|
|
|
|
- tag
|
2019-01-14 18:47:00 +01:00
|
|
|
depends_on: [ sign-release ]
|
2019-01-14 23:53:53 +01:00
|
|
|
|
2020-10-18 13:41:27 +02:00
|
|
|
# Build os packages and push it to our bucket
|
|
|
|
- name: build-os-packages
|
|
|
|
image: goreleaser/nfpm
|
2019-01-21 22:52:26 +01:00
|
|
|
pull: true
|
|
|
|
commands:
|
2020-10-18 21:28:33 +02:00
|
|
|
- apk add git go
|
2020-10-18 13:41:27 +02:00
|
|
|
- ./mage-static release:packages
|
2021-02-10 18:53:30 +01:00
|
|
|
- mv dist/os-packages/vikunja*.x86_64.rpm dist/os-packages/vikunja-unstable-x86_64.rpm
|
|
|
|
- mv dist/os-packages/vikunja*_amd64.deb dist/os-packages/vikunja-unstable-amd64.deb
|
|
|
|
- mv dist/os-packages/vikunja*_x86_64.apk dist/os-packages/vikunja-unstable-x86_64.apk
|
2019-01-21 22:52:26 +01:00
|
|
|
depends_on: [ static-build-linux ]
|
|
|
|
|
2020-10-18 13:41:27 +02:00
|
|
|
# Push the os releases to our pseudo-s3-bucket
|
|
|
|
- name: release-os-latest
|
2021-10-02 16:31:06 +02:00
|
|
|
image: plugins/s3
|
2020-10-18 13:41:27 +02:00
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
bucket: vikunja-releases
|
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
|
|
|
path_style: true
|
|
|
|
strip_prefix: dist/os-packages/
|
|
|
|
source: dist/os-packages/*
|
2021-02-10 18:50:15 +01:00
|
|
|
target: /api/unstable/
|
2020-10-19 20:35:23 +02:00
|
|
|
when:
|
2020-10-18 13:41:27 +02:00
|
|
|
branch:
|
2021-02-10 18:50:15 +01:00
|
|
|
- main
|
2020-10-18 13:59:26 +02:00
|
|
|
event:
|
|
|
|
- push
|
2020-10-18 13:41:27 +02:00
|
|
|
depends_on: [ build-os-packages ]
|
|
|
|
|
|
|
|
- name: release-os-version
|
2021-10-02 16:31:06 +02:00
|
|
|
image: plugins/s3
|
2020-10-18 13:41:27 +02:00
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
bucket: vikunja-releases
|
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
|
|
|
path_style: true
|
|
|
|
strip_prefix: dist/os-packages/
|
|
|
|
source: dist/os-packages/*
|
|
|
|
target: /api/${DRONE_TAG##v}/
|
2020-10-19 20:35:23 +02:00
|
|
|
when:
|
2020-10-18 13:59:26 +02:00
|
|
|
event:
|
|
|
|
- tag
|
2020-10-18 13:41:27 +02:00
|
|
|
depends_on: [ build-os-packages ]
|
|
|
|
|
2021-02-07 22:05:09 +01:00
|
|
|
### Broken, disabled until we figure out how to fix it
|
|
|
|
# - name: deb-structure
|
|
|
|
# image: kolaente/reprepro
|
|
|
|
# pull: true
|
|
|
|
# environment:
|
|
|
|
# GPG_PRIVATE_KEY:
|
|
|
|
# from_secret: gpg_privatekey
|
|
|
|
# commands:
|
|
|
|
# - export GPG_TTY=$(tty)
|
|
|
|
# - gpg -qk
|
|
|
|
# - echo "use-agent" >> ~/.gnupg/gpg.conf
|
|
|
|
# - gpgconf --kill gpg-agent
|
|
|
|
# - echo $GPG_PRIVATE_KEY > ~/frederik.gpg
|
|
|
|
# - gpg --import ~/frederik.gpg
|
|
|
|
# - mkdir debian/conf -p
|
|
|
|
# - cp build/reprepro-dist-conf debian/conf/distributions
|
|
|
|
# - ./mage-static release:reprepro
|
|
|
|
# depends_on: [ build-os-packages ]
|
2019-01-21 22:52:26 +01:00
|
|
|
|
|
|
|
# Push the releases to our pseudo-s3-bucket
|
|
|
|
- name: release-deb
|
2021-10-02 16:31:06 +02:00
|
|
|
image: plugins/s3
|
2019-01-21 22:52:26 +01:00
|
|
|
pull: true
|
|
|
|
settings:
|
2020-07-14 13:43:35 +02:00
|
|
|
bucket: vikunja-releases
|
2019-01-21 22:52:26 +01:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
2020-07-14 13:43:35 +02:00
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
2019-01-21 22:52:26 +01:00
|
|
|
path_style: true
|
|
|
|
strip_prefix: debian
|
2019-01-23 14:33:44 +01:00
|
|
|
source: debian/*/*/*/*/*
|
2020-03-01 22:51:50 +01:00
|
|
|
target: /deb/
|
2021-02-02 21:32:57 +01:00
|
|
|
# depends_on: [ deb-structure ]
|
2019-01-21 22:52:26 +01:00
|
|
|
|
2019-02-17 20:53:04 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: deploy-docs
|
|
|
|
|
|
|
|
workspace:
|
2019-04-22 14:20:25 +02:00
|
|
|
base: /go
|
2019-02-17 20:53:04 +01:00
|
|
|
path: src/code.vikunja.io/api
|
|
|
|
|
|
|
|
clone:
|
|
|
|
depth: 50
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
branch:
|
2021-02-10 18:50:15 +01:00
|
|
|
- main
|
2019-02-17 20:53:04 +01:00
|
|
|
|
|
|
|
steps:
|
2019-10-30 21:53:57 +01:00
|
|
|
- name: theme
|
2021-04-22 11:25:19 +02:00
|
|
|
image: kolaente/toolbox
|
2019-10-30 21:53:57 +01:00
|
|
|
pull: true
|
|
|
|
group: build-static
|
|
|
|
commands:
|
2021-04-22 11:25:19 +02:00
|
|
|
- mkdir docs/themes/vikunja -p
|
2019-10-30 21:53:57 +01:00
|
|
|
- cd docs/themes/vikunja
|
2021-04-22 11:25:19 +02:00
|
|
|
- wget https://dl.vikunja.io/theme/vikunja-theme.tar.gz
|
|
|
|
- tar -xzf vikunja-theme.tar.gz
|
2019-10-30 21:53:57 +01:00
|
|
|
|
2019-02-17 20:53:04 +01:00
|
|
|
- name: build
|
2022-03-13 16:59:41 +01:00
|
|
|
image: klakegg/hugo:0.93.3
|
2019-02-17 20:53:04 +01:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- cd docs
|
|
|
|
- hugo
|
|
|
|
- mv public/docs/* public # Hugo seems to be not capable of setting a different theme for a home page, so we do this ugly hack to fix it.
|
|
|
|
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/docs
|
|
|
|
context: docs/
|
|
|
|
dockerfile: docs/Dockerfile
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-06-22 19:23:52 +02:00
|
|
|
name: docker-arm-release
|
2020-06-22 16:40:41 +02:00
|
|
|
|
2020-06-22 21:33:55 +02:00
|
|
|
depends_on:
|
|
|
|
- testing
|
|
|
|
|
2020-06-22 16:16:19 +02:00
|
|
|
platform:
|
|
|
|
os: linux
|
2021-02-04 22:32:37 +01:00
|
|
|
arch: arm64
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
trigger:
|
2020-06-22 19:23:52 +02:00
|
|
|
ref:
|
2021-02-10 18:50:15 +01:00
|
|
|
- refs/heads/main
|
2020-06-22 19:23:52 +02:00
|
|
|
- "refs/tags/**"
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: fetch-tags
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
2021-02-13 16:01:20 +01:00
|
|
|
|
2021-09-05 14:39:56 +02:00
|
|
|
- name: docker-arm64-unstable
|
2021-02-13 16:01:20 +01:00
|
|
|
image: plugins/docker:linux-arm64
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/api
|
2021-09-05 14:39:56 +02:00
|
|
|
tags: unstable-linux-arm64
|
2021-02-13 16:01:20 +01:00
|
|
|
depends_on: [ fetch-tags ]
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/heads/main
|
|
|
|
|
2021-02-04 22:40:38 +01:00
|
|
|
- name: docker-arm64
|
2021-02-04 22:32:37 +01:00
|
|
|
image: plugins/docker:linux-arm64
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/api
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm64
|
|
|
|
depends_on: [ fetch-tags ]
|
2021-02-13 16:01:20 +01:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-06-22 19:23:52 +02:00
|
|
|
name: docker-amd64-release
|
2020-06-22 16:40:41 +02:00
|
|
|
|
2020-06-22 21:33:55 +02:00
|
|
|
depends_on:
|
|
|
|
- testing
|
|
|
|
|
2020-06-22 16:16:19 +02:00
|
|
|
platform:
|
|
|
|
os: linux
|
2020-06-22 19:23:52 +02:00
|
|
|
arch: amd64
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
trigger:
|
2020-06-22 19:23:52 +02:00
|
|
|
ref:
|
2021-02-10 18:50:15 +01:00
|
|
|
- refs/heads/main
|
2020-06-22 19:23:52 +02:00
|
|
|
- "refs/tags/**"
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: fetch-tags
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
2021-09-05 14:39:56 +02:00
|
|
|
|
|
|
|
- name: docker-unstable
|
2021-02-13 16:01:20 +01:00
|
|
|
image: plugins/docker:linux-amd64
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/api
|
2021-09-05 14:39:56 +02:00
|
|
|
tags: unstable-linux-amd64
|
2021-02-13 16:01:20 +01:00
|
|
|
depends_on: [ fetch-tags ]
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/heads/main
|
|
|
|
|
2020-06-22 16:16:19 +02:00
|
|
|
- name: docker
|
2020-06-22 19:23:52 +02:00
|
|
|
image: plugins/docker:linux-amd64
|
2020-06-22 16:16:19 +02:00
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/api
|
|
|
|
auto_tag: true
|
2020-06-22 19:23:52 +02:00
|
|
|
auto_tag_suffix: linux-amd64
|
2020-06-22 16:16:19 +02:00
|
|
|
depends_on: [ fetch-tags ]
|
2021-02-13 16:01:20 +01:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-06-22 19:23:52 +02:00
|
|
|
name: docker-manifest
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
trigger:
|
2020-06-22 19:23:52 +02:00
|
|
|
ref:
|
2021-02-10 18:50:15 +01:00
|
|
|
- refs/heads/main
|
2020-06-22 19:23:52 +02:00
|
|
|
- "refs/tags/**"
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- docker-amd64-release
|
|
|
|
- docker-arm-release
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
steps:
|
2021-09-05 14:39:56 +02:00
|
|
|
- name: manifest-unstable
|
2021-02-13 16:01:20 +01:00
|
|
|
pull: always
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
2021-09-05 14:39:56 +02:00
|
|
|
tags: unstable
|
2021-02-13 16:01:20 +01:00
|
|
|
ignore_missing: true
|
2021-09-05 14:39:56 +02:00
|
|
|
spec: docker-manifest-unstable.tmpl
|
2021-02-13 16:01:20 +01:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/heads/main
|
|
|
|
|
2021-09-05 14:39:56 +02:00
|
|
|
- name: manifest-release
|
2020-06-22 19:23:52 +02:00
|
|
|
pull: always
|
|
|
|
image: plugins/manifest
|
2020-06-22 16:16:19 +02:00
|
|
|
settings:
|
2020-06-22 19:23:52 +02:00
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: docker-manifest.tmpl
|
2020-06-22 16:16:19 +02:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2020-06-22 19:23:52 +02:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2021-02-13 16:01:20 +01:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
2020-06-22 16:16:19 +02:00
|
|
|
|
2021-09-05 14:39:56 +02:00
|
|
|
- name: manifest-release-latest
|
|
|
|
pull: always
|
|
|
|
image: plugins/manifest
|
|
|
|
depends_on:
|
|
|
|
- clone
|
|
|
|
settings:
|
|
|
|
tags: latest
|
|
|
|
ignore_missing: true
|
|
|
|
spec: docker-manifest.tmpl
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
|
|
|
|
2020-06-22 16:16:19 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-06-22 19:23:52 +02:00
|
|
|
name: notify
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
trigger:
|
2020-06-22 19:23:52 +02:00
|
|
|
ref:
|
2021-02-10 18:50:15 +01:00
|
|
|
- refs/heads/main
|
2020-06-22 19:23:52 +02:00
|
|
|
- "refs/tags/**"
|
|
|
|
|
|
|
|
depends_on:
|
2021-04-07 12:27:51 +02:00
|
|
|
- testing
|
2020-06-22 19:23:52 +02:00
|
|
|
- release
|
2021-04-07 12:27:51 +02:00
|
|
|
- deploy-docs
|
|
|
|
- docker-arm-release
|
|
|
|
- docker-amd64-release
|
2020-06-22 19:23:52 +02:00
|
|
|
- docker-manifest
|
2020-06-22 16:16:19 +02:00
|
|
|
|
|
|
|
steps:
|
2021-04-07 12:27:51 +02:00
|
|
|
- name: notify
|
|
|
|
image: plugins/matrix
|
2020-06-22 16:16:19 +02:00
|
|
|
settings:
|
2021-04-07 12:27:51 +02:00
|
|
|
homeserver: https://matrix.org
|
2021-04-07 14:46:40 +02:00
|
|
|
roomid: WqBDCxzghKcNflkErL:matrix.org
|
2021-04-07 12:27:51 +02:00
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
2020-06-22 19:23:52 +02:00
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
2021-08-11 23:28:21 +02:00
|
|
|
---
|
|
|
|
kind: signature
|
2022-08-03 15:20:11 +02:00
|
|
|
hmac: 3745c69e4723e5349527f5ca8941a530f3ed05f333622cce56630f3c39b1fdbd
|
2021-08-11 23:28:21 +02:00
|
|
|
|
|
|
|
...
|