2019-04-25 20:03:19 +02:00
|
|
|
kind: pipeline
|
2020-12-10 14:52:35 +01:00
|
|
|
name: build
|
2018-09-08 17:44:29 +02:00
|
|
|
|
2019-04-25 20:03:19 +02:00
|
|
|
trigger:
|
|
|
|
branch:
|
2020-03-01 16:52:36 +01:00
|
|
|
include:
|
2021-02-10 18:17:20 +01:00
|
|
|
- main
|
2019-04-25 20:03:19 +02:00
|
|
|
event:
|
2020-03-01 16:52:36 +01:00
|
|
|
include:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2018-09-08 17:44:29 +02:00
|
|
|
|
2020-12-10 14:52:35 +01:00
|
|
|
services:
|
|
|
|
- name: api
|
|
|
|
image: vikunja/api
|
|
|
|
environment:
|
|
|
|
VIKUNJA_SERVICE_TESTINGTOKEN: averyLongSecretToSe33dtheDB
|
|
|
|
VIKUNJA_LOG_LEVEL: DEBUG
|
|
|
|
|
2019-04-25 20:03:19 +02:00
|
|
|
steps:
|
2020-12-06 18:45:44 +01:00
|
|
|
- name: restore-cache
|
|
|
|
image: meltwater/drone-cache:dev
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
AWS_ACCESS_KEY_ID:
|
|
|
|
from_secret: cache_aws_access_key_id
|
|
|
|
AWS_SECRET_ACCESS_KEY:
|
|
|
|
from_secret: cache_aws_secret_access_key
|
|
|
|
settings:
|
|
|
|
restore: true
|
|
|
|
bucket: kolaente.dev-drone-dependency-cache
|
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
|
|
|
path_style: true
|
2020-12-08 19:21:21 +01:00
|
|
|
cache_key: '{{ .Repo.Name }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
2020-12-06 18:45:44 +01:00
|
|
|
mount:
|
|
|
|
- '.cache'
|
|
|
|
|
|
|
|
- name: dependencies
|
2021-06-14 22:33:56 +02:00
|
|
|
image: node:16
|
2018-09-08 17:44:29 +02:00
|
|
|
pull: true
|
2020-12-06 18:45:44 +01:00
|
|
|
environment:
|
2020-12-10 14:52:35 +01:00
|
|
|
YARN_CACHE_FOLDER: .cache/yarn/
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/cypress/
|
2018-09-08 17:44:29 +02:00
|
|
|
commands:
|
2020-06-23 09:18:17 +02:00
|
|
|
- yarn --frozen-lockfile --network-timeout 100000
|
2020-12-06 18:45:44 +01:00
|
|
|
depends_on:
|
|
|
|
- restore-cache
|
|
|
|
|
|
|
|
- name: rebuild-cache
|
|
|
|
image: meltwater/drone-cache:dev
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
AWS_ACCESS_KEY_ID:
|
|
|
|
from_secret: cache_aws_access_key_id
|
|
|
|
AWS_SECRET_ACCESS_KEY:
|
|
|
|
from_secret: cache_aws_secret_access_key
|
|
|
|
settings:
|
|
|
|
rebuild: true
|
|
|
|
bucket: kolaente.dev-drone-dependency-cache
|
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
|
|
|
path_style: true
|
2020-12-08 19:21:21 +01:00
|
|
|
cache_key: '{{ .Repo.Name }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
2020-12-06 18:45:44 +01:00
|
|
|
mount:
|
|
|
|
- '.cache'
|
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
2021-07-23 13:13:15 +02:00
|
|
|
- name: lint
|
2021-06-14 22:33:56 +02:00
|
|
|
image: node:16
|
2020-12-06 18:45:44 +01:00
|
|
|
pull: true
|
|
|
|
environment:
|
2020-12-10 14:52:35 +01:00
|
|
|
YARN_CACHE_FOLDER: .cache/yarn/
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/cypress/
|
2020-12-06 18:45:44 +01:00
|
|
|
commands:
|
2019-03-03 22:38:12 +01:00
|
|
|
- yarn run lint
|
2021-07-23 13:13:15 +02:00
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
|
|
|
# Building in dev mode to avoid the service worker for testing
|
|
|
|
- name: build-dev
|
|
|
|
image: node:16
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
YARN_CACHE_FOLDER: .cache/yarn/
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/cypress/
|
|
|
|
commands:
|
2021-07-25 15:27:15 +02:00
|
|
|
- yarn build:dev
|
2021-07-23 13:13:15 +02:00
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
|
|
|
- name: build-prod
|
|
|
|
image: node:16
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
YARN_CACHE_FOLDER: .cache/yarn/
|
|
|
|
commands:
|
|
|
|
- yarn build --dest dist-prod
|
2020-12-06 18:45:44 +01:00
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
2020-12-10 14:52:35 +01:00
|
|
|
- name: test-unit
|
2021-06-14 22:33:56 +02:00
|
|
|
image: node:16
|
2020-11-28 14:59:27 +01:00
|
|
|
pull: true
|
|
|
|
commands:
|
2020-12-10 14:52:35 +01:00
|
|
|
- yarn test:unit
|
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
|
|
|
- name: test-frontend
|
2021-07-23 13:13:15 +02:00
|
|
|
image: cypress/browsers:node14.17.0-chrome91-ff89
|
2020-12-10 14:52:35 +01:00
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
CYPRESS_API_URL: http://api:3456/api/v1
|
|
|
|
CYPRESS_TEST_SECRET: averyLongSecretToSe33dtheDB
|
|
|
|
YARN_CACHE_FOLDER: .cache/yarn/
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/cypress/
|
2021-07-17 23:21:46 +02:00
|
|
|
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 60000
|
2020-12-10 14:52:35 +01:00
|
|
|
commands:
|
2021-07-25 15:27:15 +02:00
|
|
|
- sed -i 's/localhost/api/g' dist-dev/index.html
|
|
|
|
- yarn serve:dist-dev & npx wait-on http://localhost:5000
|
2020-12-10 14:52:35 +01:00
|
|
|
- yarn test:frontend --browser chrome
|
2020-12-06 18:45:44 +01:00
|
|
|
depends_on:
|
|
|
|
- dependencies
|
2021-07-23 13:13:15 +02:00
|
|
|
- build-dev
|
2020-12-06 18:45:44 +01:00
|
|
|
|
2020-12-10 14:52:35 +01:00
|
|
|
- name: upload-test-results
|
|
|
|
image: plugins/s3:1
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
bucket: drone-test-results
|
|
|
|
access_key:
|
|
|
|
from_secret: test_results_aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: test_results_aws_secret_access_key
|
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
|
|
|
path_style: true
|
|
|
|
source: cypress/screenshots/**/**/*
|
|
|
|
strip_prefix: cypress/screenshots/
|
|
|
|
target: /${DRONE_REPO}/${DRONE_PULL_REQUEST}_${DRONE_BRANCH}/${DRONE_BUILD_NUMBER}/
|
2021-02-12 20:02:51 +01:00
|
|
|
depends_on:
|
2020-12-10 14:52:35 +01:00
|
|
|
- test-frontend
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
- success
|
|
|
|
|
2019-04-25 20:03:19 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: release-latest
|
|
|
|
|
2021-01-14 22:50:31 +01:00
|
|
|
depends_on:
|
|
|
|
- build
|
|
|
|
|
2019-04-25 20:03:19 +02:00
|
|
|
trigger:
|
|
|
|
branch:
|
2021-02-10 18:17:20 +01:00
|
|
|
- main
|
2019-04-25 20:03:19 +02:00
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
2020-05-09 22:09:46 +02:00
|
|
|
- name: fetch-tags
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
|
|
|
|
2020-12-06 18:45:44 +01:00
|
|
|
- name: restore-cache
|
|
|
|
image: meltwater/drone-cache:dev
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
AWS_ACCESS_KEY_ID:
|
|
|
|
from_secret: cache_aws_access_key_id
|
|
|
|
AWS_SECRET_ACCESS_KEY:
|
|
|
|
from_secret: cache_aws_secret_access_key
|
|
|
|
settings:
|
|
|
|
restore: true
|
|
|
|
bucket: kolaente.dev-drone-dependency-cache
|
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
|
|
|
path_style: true
|
2020-12-08 19:21:21 +01:00
|
|
|
cache_key: '{{ .Repo.Name }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
2020-12-06 18:45:44 +01:00
|
|
|
mount:
|
|
|
|
- '.cache'
|
|
|
|
|
2019-04-25 20:03:19 +02:00
|
|
|
- name: build
|
2021-06-14 22:33:56 +02:00
|
|
|
image: node:16
|
2018-09-08 17:44:29 +02:00
|
|
|
pull: true
|
2019-04-25 20:03:19 +02:00
|
|
|
group: build-static
|
2020-12-06 18:45:44 +01:00
|
|
|
environment:
|
2020-12-10 15:46:51 +01:00
|
|
|
YARN_CACHE_FOLDER: .cache/yarn/
|
2018-09-08 17:44:29 +02:00
|
|
|
commands:
|
2020-06-23 09:18:17 +02:00
|
|
|
- yarn --frozen-lockfile --network-timeout 100000
|
2019-04-25 20:03:19 +02:00
|
|
|
- yarn run lint
|
2020-05-09 21:57:59 +02:00
|
|
|
- "echo '{\"VERSION\": \"'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'\"}' > src/version.json"
|
2019-04-25 20:03:19 +02:00
|
|
|
- yarn run build
|
2020-05-05 23:34:58 +02:00
|
|
|
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
2021-02-10 18:25:39 +01:00
|
|
|
depends_on:
|
|
|
|
- restore-cache
|
2018-09-08 17:51:34 +02:00
|
|
|
|
2019-04-25 20:03:19 +02:00
|
|
|
- name: static
|
|
|
|
image: kolaente/zip
|
2018-09-08 17:52:06 +02:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- cd dist
|
2021-02-10 18:17:20 +01:00
|
|
|
- zip -r ../vikunja-frontend-unstable.zip *
|
2018-09-08 17:52:06 +02:00
|
|
|
- cd ..
|
2019-04-25 20:05:12 +02:00
|
|
|
depends_on: [ build ]
|
2018-09-08 17:44:29 +02:00
|
|
|
|
2019-04-25 20:05:12 +02:00
|
|
|
- name: release
|
2018-09-08 17:44:29 +02:00
|
|
|
image: plugins/s3:1
|
|
|
|
pull: true
|
2019-04-25 20:03:19 +02:00
|
|
|
settings:
|
2020-07-14 13:45:57 +02:00
|
|
|
bucket: vikunja-releases
|
2019-04-25 20:03:19 +02:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
2020-07-14 13:45:57 +02:00
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
2019-04-25 20:03:19 +02:00
|
|
|
path_style: true
|
2021-02-10 18:17:20 +01:00
|
|
|
source: vikunja-frontend-unstable.zip
|
2020-03-01 22:53:40 +01:00
|
|
|
target: /frontend/
|
2019-04-25 20:05:12 +02:00
|
|
|
depends_on: [ static ]
|
2019-04-25 20:03:19 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: release-version
|
2018-09-08 17:44:29 +02:00
|
|
|
|
2021-01-14 22:50:31 +01:00
|
|
|
depends_on:
|
|
|
|
- build
|
|
|
|
|
2019-04-25 20:03:19 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
steps:
|
2020-05-09 22:09:46 +02:00
|
|
|
- name: fetch-tags
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
|
|
|
|
2020-12-06 18:45:44 +01:00
|
|
|
- name: restore-cache
|
|
|
|
image: meltwater/drone-cache:dev
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
AWS_ACCESS_KEY_ID:
|
|
|
|
from_secret: cache_aws_access_key_id
|
|
|
|
AWS_SECRET_ACCESS_KEY:
|
|
|
|
from_secret: cache_aws_secret_access_key
|
|
|
|
settings:
|
|
|
|
restore: true
|
|
|
|
bucket: kolaente.dev-drone-dependency-cache
|
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
|
|
|
path_style: true
|
2020-12-08 19:21:21 +01:00
|
|
|
cache_key: '{{ .Repo.Name }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
2020-12-06 18:45:44 +01:00
|
|
|
mount:
|
|
|
|
- '.cache'
|
|
|
|
|
2019-04-25 20:03:19 +02:00
|
|
|
- name: build
|
2021-06-14 22:33:56 +02:00
|
|
|
image: node:16
|
2019-04-25 20:03:19 +02:00
|
|
|
pull: true
|
|
|
|
group: build-static
|
2020-12-06 18:45:44 +01:00
|
|
|
environment:
|
2020-12-10 15:46:51 +01:00
|
|
|
YARN_CACHE_FOLDER: .cache/yarn/
|
2019-04-25 20:03:19 +02:00
|
|
|
commands:
|
2020-06-23 09:18:17 +02:00
|
|
|
- yarn --frozen-lockfile --network-timeout 100000
|
2019-04-25 20:03:19 +02:00
|
|
|
- yarn run lint
|
2020-05-09 21:57:59 +02:00
|
|
|
- "echo '{\"VERSION\": \"'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'\"}' > src/version.json"
|
2019-04-25 20:03:19 +02:00
|
|
|
- yarn run build
|
2020-05-05 23:34:58 +02:00
|
|
|
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
2021-02-10 18:25:39 +01:00
|
|
|
depends_on:
|
|
|
|
- restore-cache
|
2019-04-25 20:03:19 +02:00
|
|
|
|
|
|
|
- name: static
|
|
|
|
image: kolaente/zip
|
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- cd dist
|
|
|
|
- zip -r ../vikunja-frontend-${DRONE_TAG##v}.zip *
|
|
|
|
- cd ..
|
2019-04-25 20:05:12 +02:00
|
|
|
depends_on: [ build ]
|
2019-04-25 20:03:19 +02:00
|
|
|
|
2019-04-25 20:05:12 +02:00
|
|
|
- name: release
|
2018-09-08 17:44:29 +02:00
|
|
|
image: plugins/s3:1
|
|
|
|
pull: true
|
2019-04-25 20:03:19 +02:00
|
|
|
settings:
|
2020-07-14 13:45:57 +02:00
|
|
|
bucket: vikunja-releases
|
2019-04-25 20:03:19 +02:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
2020-07-14 13:45:57 +02:00
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
2019-04-25 20:03:19 +02:00
|
|
|
path_style: true
|
|
|
|
source: vikunja-frontend-${DRONE_TAG##v}.zip
|
2020-03-01 22:53:40 +01:00
|
|
|
target: /frontend/
|
2019-04-25 20:05:12 +02:00
|
|
|
depends_on: [ static ]
|
2018-09-08 17:44:29 +02:00
|
|
|
|
2020-10-18 14:14:03 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: trigger-desktop-update
|
|
|
|
|
2020-10-18 20:41:58 +02:00
|
|
|
trigger:
|
|
|
|
branch:
|
2021-02-10 18:17:20 +01:00
|
|
|
- main
|
2020-10-18 20:41:58 +02:00
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
2020-10-18 14:14:03 +02:00
|
|
|
depends_on:
|
|
|
|
- release-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: trigger
|
2021-08-06 00:49:53 +02:00
|
|
|
image: kolaente/drone-plugin-downstream
|
2020-10-18 14:14:03 +02:00
|
|
|
settings:
|
|
|
|
server: https://drone.kolaente.de
|
|
|
|
token:
|
|
|
|
from_secret: drone_token
|
|
|
|
repositories:
|
2021-02-10 18:17:20 +01:00
|
|
|
- vikunja/desktop@main
|
2020-10-18 14:14:03 +02:00
|
|
|
|
2020-06-22 13:55:03 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: docker-arm-release
|
|
|
|
|
2020-12-16 20:23:38 +01:00
|
|
|
depends_on:
|
|
|
|
- release-latest
|
|
|
|
- release-version
|
|
|
|
|
2020-06-22 13:55:03 +02:00
|
|
|
platform:
|
|
|
|
os: linux
|
2021-02-04 21:46:45 +01:00
|
|
|
arch: arm64
|
2020-06-22 13:55:03 +02:00
|
|
|
|
|
|
|
trigger:
|
2020-06-22 19:13:43 +02:00
|
|
|
ref:
|
2021-02-10 18:17:20 +01:00
|
|
|
- refs/heads/main
|
2020-06-22 19:13:43 +02:00
|
|
|
- "refs/tags/**"
|
2020-06-22 13:55:03 +02:00
|
|
|
|
|
|
|
steps:
|
2020-12-16 20:23:38 +01:00
|
|
|
- name: docker-latest
|
|
|
|
image: plugins/docker:linux-arm
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/frontend
|
2021-02-12 20:02:51 +01:00
|
|
|
tags: latest-linux-arm
|
2020-12-16 20:23:38 +01:00
|
|
|
build_args:
|
|
|
|
- USE_RELEASE=true
|
2021-02-10 18:17:20 +01:00
|
|
|
- RELEASE_VERSION=unstable
|
2020-12-16 20:23:38 +01:00
|
|
|
when:
|
|
|
|
ref:
|
2021-02-10 18:17:20 +01:00
|
|
|
- refs/heads/main
|
2021-02-04 22:07:12 +01:00
|
|
|
depends_on:
|
|
|
|
- clone
|
2020-12-10 15:46:51 +01:00
|
|
|
|
2020-12-16 20:23:38 +01:00
|
|
|
- name: docker-version
|
2020-06-22 18:37:09 +02:00
|
|
|
image: plugins/docker:linux-arm
|
2020-06-22 13:55:03 +02:00
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/frontend
|
|
|
|
auto_tag: true
|
2020-06-22 22:19:53 +02:00
|
|
|
auto_tag_suffix: linux-arm
|
2020-12-16 20:23:38 +01:00
|
|
|
build_args:
|
|
|
|
- USE_RELEASE=true
|
|
|
|
- RELEASE_VERSION=${DRONE_TAG##v}
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
2021-02-04 22:07:12 +01:00
|
|
|
depends_on:
|
|
|
|
- clone
|
2020-06-22 13:55:03 +02:00
|
|
|
|
2021-02-04 21:46:45 +01:00
|
|
|
- name: docker-latest-arm64
|
|
|
|
image: plugins/docker:linux-arm64
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/frontend
|
2021-02-12 20:02:51 +01:00
|
|
|
tags: latest-linux-arm64
|
2021-02-04 21:46:45 +01:00
|
|
|
build_args:
|
|
|
|
- USE_RELEASE=true
|
2021-02-10 18:17:20 +01:00
|
|
|
- RELEASE_VERSION=unstable
|
2021-02-04 21:46:45 +01:00
|
|
|
when:
|
|
|
|
ref:
|
2021-02-10 18:17:20 +01:00
|
|
|
- refs/heads/main
|
2021-02-04 22:07:12 +01:00
|
|
|
depends_on:
|
|
|
|
- clone
|
2021-02-04 21:46:45 +01:00
|
|
|
|
|
|
|
- name: docker-version-arm64
|
|
|
|
image: plugins/docker:linux-arm64
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/frontend
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm64
|
|
|
|
build_args:
|
|
|
|
- USE_RELEASE=true
|
|
|
|
- RELEASE_VERSION=${DRONE_TAG##v}
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
2021-02-04 22:07:12 +01:00
|
|
|
depends_on:
|
|
|
|
- clone
|
2021-02-04 21:46:45 +01:00
|
|
|
|
2020-06-22 13:55:03 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: docker-amd64-release
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
2020-12-16 20:23:38 +01:00
|
|
|
depends_on:
|
|
|
|
- release-latest
|
|
|
|
- release-version
|
|
|
|
|
2020-06-22 13:55:03 +02:00
|
|
|
trigger:
|
2020-06-22 19:13:43 +02:00
|
|
|
ref:
|
2021-02-10 18:17:20 +01:00
|
|
|
- refs/heads/main
|
2020-06-22 19:13:43 +02:00
|
|
|
- "refs/tags/**"
|
2020-04-06 21:58:49 +02:00
|
|
|
|
2020-06-22 13:55:03 +02:00
|
|
|
steps:
|
2020-12-16 20:23:38 +01:00
|
|
|
- name: docker-latest
|
|
|
|
image: plugins/docker:linux-amd64
|
2020-12-10 15:46:51 +01:00
|
|
|
pull: true
|
|
|
|
settings:
|
2020-12-16 20:23:38 +01:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/frontend
|
2021-02-12 20:02:51 +01:00
|
|
|
tags: latest-linux-amd64
|
2020-12-16 20:23:38 +01:00
|
|
|
build_args:
|
|
|
|
- USE_RELEASE=true
|
2021-02-10 18:17:20 +01:00
|
|
|
- RELEASE_VERSION=unstable
|
2020-12-16 20:23:38 +01:00
|
|
|
when:
|
|
|
|
ref:
|
2021-02-10 18:17:20 +01:00
|
|
|
- refs/heads/main
|
2020-12-10 15:46:51 +01:00
|
|
|
|
2020-12-16 20:23:38 +01:00
|
|
|
- name: docker-version
|
2020-06-22 18:30:02 +02:00
|
|
|
image: plugins/docker:linux-amd64
|
2020-06-22 13:55:03 +02:00
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/frontend
|
|
|
|
auto_tag: true
|
2020-06-22 18:30:02 +02:00
|
|
|
auto_tag_suffix: linux-amd64
|
2020-12-16 20:23:38 +01:00
|
|
|
build_args:
|
|
|
|
- USE_RELEASE=true
|
|
|
|
- RELEASE_VERSION=${DRONE_TAG##v}
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
2020-06-22 18:57:20 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: docker-manifest
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
2021-02-10 18:17:20 +01:00
|
|
|
- refs/heads/main
|
2020-06-22 18:57:20 +02:00
|
|
|
- "refs/tags/**"
|
|
|
|
|
|
|
|
depends_on:
|
2020-06-22 19:13:43 +02:00
|
|
|
- docker-amd64-release
|
|
|
|
- docker-arm-release
|
2020-06-22 18:57:20 +02:00
|
|
|
|
|
|
|
steps:
|
2021-02-12 20:06:50 +01:00
|
|
|
- name: manifest-latest
|
2021-02-12 20:02:51 +01:00
|
|
|
pull: always
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
tags: latest
|
2021-02-14 23:41:29 +01:00
|
|
|
spec: docker-manifest-latest.tmpl
|
2021-02-12 20:02:51 +01:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/heads/main
|
|
|
|
|
2021-02-12 20:06:50 +01:00
|
|
|
- name: manifest-release
|
2020-06-22 18:57:20 +02:00
|
|
|
pull: always
|
|
|
|
image: plugins/manifest
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
ignore_missing: true
|
|
|
|
spec: docker-manifest.tmpl
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2021-02-12 20:02:51 +01:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
2020-06-22 18:57:20 +02:00
|
|
|
|
2020-06-22 19:13:43 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: notify
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
2021-02-10 18:17:20 +01:00
|
|
|
- refs/heads/main
|
2020-06-22 19:13:43 +02:00
|
|
|
- "refs/tags/**"
|
|
|
|
|
|
|
|
depends_on:
|
2021-04-07 16:41:48 +02:00
|
|
|
- build
|
2020-06-22 19:13:43 +02:00
|
|
|
- release-version
|
|
|
|
- release-latest
|
2021-04-07 16:41:48 +02:00
|
|
|
- trigger-desktop-update
|
|
|
|
- docker-arm-release
|
|
|
|
- docker-amd64-release
|
2020-06-22 19:13:43 +02:00
|
|
|
- docker-manifest
|
|
|
|
|
|
|
|
steps:
|
2021-04-07 16:41:48 +02:00
|
|
|
- name: notify
|
|
|
|
image: plugins/matrix
|
2020-06-22 19:13:43 +02:00
|
|
|
settings:
|
2021-04-07 16:41:48 +02:00
|
|
|
homeserver: https://matrix.org
|
|
|
|
roomid: WqBDCxzghKcNflkErL:matrix.org
|
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
2020-06-22 19:13:43 +02:00
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
2021-06-24 01:24:57 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-07-13 12:06:50 +02:00
|
|
|
name: update-translations
|
2021-06-24 01:24:57 +02:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- build
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
2021-07-13 12:06:50 +02:00
|
|
|
# - name: download
|
|
|
|
# pull: always
|
|
|
|
# image: jonasfranz/crowdin
|
|
|
|
# settings:
|
|
|
|
# download: true
|
|
|
|
# export_dir: src/i18n/lang/
|
|
|
|
# ignore_branch: true
|
|
|
|
# project_identifier: vikunja
|
|
|
|
# environment:
|
|
|
|
# CROWDIN_KEY:
|
|
|
|
# from_secret: crowdin_key
|
|
|
|
#
|
|
|
|
# - name: push
|
|
|
|
# pull: always
|
|
|
|
# image: appleboy/drone-git-push
|
|
|
|
# settings:
|
|
|
|
# author_email: "frederik@vikunja.io"
|
|
|
|
# author_name: Frederick [Bot]
|
|
|
|
# branch: main
|
|
|
|
# commit: true
|
|
|
|
# commit_message: "[skip ci] Updated translations via Crowdin"
|
|
|
|
# remote: "git@kolaente.dev:9022/vikunja/frontend.git"
|
|
|
|
# environment:
|
|
|
|
# GIT_PUSH_SSH_KEY:
|
|
|
|
# from_secret: git_push_ssh_key
|
|
|
|
|
|
|
|
- name: upload
|
|
|
|
pull: always
|
|
|
|
image: jonasfranz/crowdin
|
2021-06-24 01:24:57 +02:00
|
|
|
settings:
|
2021-07-13 12:06:50 +02:00
|
|
|
files:
|
|
|
|
en.json: src/i18n/lang/en.json
|
|
|
|
ignore_branch: true
|
|
|
|
project_identifier: vikunja
|
2021-06-24 01:24:57 +02:00
|
|
|
environment:
|
2021-07-13 12:06:50 +02:00
|
|
|
CROWDIN_KEY:
|
|
|
|
from_secret: crowdin_key
|