2021-11-10 21:25:50 +00:00
|
|
|
---
|
2019-04-25 18:03:19 +00:00
|
|
|
kind: pipeline
|
2022-11-05 13:24:24 +00:00
|
|
|
type: docker
|
2020-12-10 13:52:35 +00:00
|
|
|
name: build
|
2018-09-08 15:44:29 +00:00
|
|
|
|
2019-04-25 18:03:19 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
2020-03-01 15:52:36 +00:00
|
|
|
include:
|
2021-02-10 17:17:20 +00:00
|
|
|
- main
|
2019-04-25 18:03:19 +00:00
|
|
|
event:
|
2020-03-01 15:52:36 +00:00
|
|
|
include:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2018-09-08 15:44:29 +00:00
|
|
|
|
2020-12-10 13:52:35 +00:00
|
|
|
services:
|
|
|
|
- name: api
|
2021-09-26 13:54:58 +00:00
|
|
|
image: vikunja/api:unstable
|
2023-03-14 13:43:20 +00:00
|
|
|
pull: always
|
2020-12-10 13:52:35 +00:00
|
|
|
environment:
|
|
|
|
VIKUNJA_SERVICE_TESTINGTOKEN: averyLongSecretToSe33dtheDB
|
|
|
|
VIKUNJA_LOG_LEVEL: DEBUG
|
|
|
|
|
2019-04-25 18:03:19 +00:00
|
|
|
steps:
|
2021-09-29 20:48:01 +00:00
|
|
|
# Disabled until we figure out why it is so slow
|
2022-09-21 18:29:29 +00:00
|
|
|
# - name: restore-cache
|
|
|
|
# image: meltwater/drone-cache:dev
|
2022-11-04 17:29:02 +00:00
|
|
|
# pull: always
|
2022-09-21 18:29:29 +00:00
|
|
|
# environment:
|
|
|
|
# AWS_ACCESS_KEY_ID:
|
|
|
|
# from_secret: cache_aws_access_key_id
|
|
|
|
# AWS_SECRET_ACCESS_KEY:
|
|
|
|
# from_secret: cache_aws_secret_access_key
|
|
|
|
# settings:
|
|
|
|
# debug: true
|
|
|
|
# restore: true
|
|
|
|
# bucket: kolaente.dev-drone-dependency-cache
|
|
|
|
# endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
# region: fr-par
|
|
|
|
# path_style: true
|
|
|
|
# cache_key: '{{ .Repo.Name }}_{{ checksum "pnpm-lock.yaml" }}_{{ arch }}_{{ os }}'
|
|
|
|
# mount:
|
|
|
|
# - .cache
|
2020-12-06 17:45:44 +00:00
|
|
|
|
|
|
|
- name: dependencies
|
2024-01-16 11:49:00 +00:00
|
|
|
image: node:20.11.0-alpine
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2020-12-06 17:45:44 +00:00
|
|
|
environment:
|
2022-04-09 20:24:16 +00:00
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/cypress
|
2023-05-10 08:42:44 +00:00
|
|
|
PUPPETEER_SKIP_DOWNLOAD: true
|
2018-09-08 15:44:29 +00:00
|
|
|
commands:
|
2022-09-26 12:49:48 +00:00
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
2022-04-09 18:00:29 +00:00
|
|
|
- pnpm install --fetch-timeout 100000
|
2022-09-21 18:29:29 +00:00
|
|
|
# depends_on:
|
|
|
|
# - restore-cache
|
2020-12-06 17:45:44 +00:00
|
|
|
|
2021-07-23 11:13:15 +00:00
|
|
|
- name: lint
|
2024-01-16 11:49:00 +00:00
|
|
|
image: node:20.11.0-alpine
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2020-12-06 17:45:44 +00:00
|
|
|
environment:
|
2022-04-09 20:24:16 +00:00
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
2020-12-06 17:45:44 +00:00
|
|
|
commands:
|
2022-09-26 12:49:48 +00:00
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
2022-04-09 18:00:29 +00:00
|
|
|
- pnpm run lint
|
2021-07-23 11:13:15 +00:00
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
|
|
|
- name: build-prod
|
2024-01-16 11:49:00 +00:00
|
|
|
image: node:20.11.0-alpine
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2021-07-23 11:13:15 +00:00
|
|
|
environment:
|
2022-04-09 20:24:16 +00:00
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
2021-07-23 11:13:15 +00:00
|
|
|
commands:
|
2022-09-26 12:49:48 +00:00
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
2022-04-09 18:00:29 +00:00
|
|
|
- pnpm run build
|
2020-12-06 17:45:44 +00:00
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
2020-12-10 13:52:35 +00:00
|
|
|
- name: test-unit
|
2024-01-16 11:49:00 +00:00
|
|
|
image: node:20.11.0-alpine
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2020-11-28 13:59:27 +00:00
|
|
|
commands:
|
2022-09-26 12:49:48 +00:00
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
2022-04-09 18:00:29 +00:00
|
|
|
- pnpm run test:unit
|
2020-12-10 13:52:35 +00:00
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
2022-01-06 10:37:51 +00:00
|
|
|
- name: typecheck
|
|
|
|
failure: ignore
|
2024-01-16 11:49:00 +00:00
|
|
|
image: node:20.11.0-alpine
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2022-04-09 18:00:29 +00:00
|
|
|
environment:
|
2022-04-09 20:24:16 +00:00
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
2022-01-06 10:37:51 +00:00
|
|
|
commands:
|
2022-09-26 12:49:48 +00:00
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
2022-04-09 18:00:29 +00:00
|
|
|
- pnpm run typecheck
|
2022-01-06 10:37:51 +00:00
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
2020-12-10 13:52:35 +00:00
|
|
|
- name: test-frontend
|
2022-12-15 21:35:17 +00:00
|
|
|
image: cypress/browsers:node18.12.0-chrome107
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2020-12-10 13:52:35 +00:00
|
|
|
environment:
|
|
|
|
CYPRESS_API_URL: http://api:3456/api/v1
|
|
|
|
CYPRESS_TEST_SECRET: averyLongSecretToSe33dtheDB
|
2022-04-09 20:24:16 +00:00
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/cypress
|
2021-07-17 21:21:46 +00:00
|
|
|
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 60000
|
2022-01-30 21:33:27 +00:00
|
|
|
CYPRESS_RECORD_KEY:
|
|
|
|
from_secret: cypress_project_key
|
2020-12-10 13:52:35 +00:00
|
|
|
commands:
|
2021-10-11 18:39:27 +00:00
|
|
|
- sed -i 's/localhost/api/g' dist/index.html
|
2022-09-26 12:49:48 +00:00
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
2022-09-21 18:42:49 +00:00
|
|
|
- pnpm cypress install
|
2022-12-15 21:35:17 +00:00
|
|
|
- pnpm run test:e2e-record
|
2020-12-06 17:45:44 +00:00
|
|
|
depends_on:
|
2021-10-11 18:39:27 +00:00
|
|
|
- build-prod
|
2020-12-06 17:45:44 +00:00
|
|
|
|
2022-09-21 18:29:29 +00:00
|
|
|
# - name: rebuild-cache
|
|
|
|
# image: meltwater/drone-cache:dev
|
2022-11-04 17:29:02 +00:00
|
|
|
# pull: always
|
2022-09-21 18:29:29 +00:00
|
|
|
# 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
|
|
|
|
# cache_key: '{{ .Repo.Name }}_{{ checksum "pnpm-lock.yaml" }}_{{ arch }}_{{ os }}'
|
|
|
|
# mount:
|
|
|
|
# - .cache
|
|
|
|
# depends_on:
|
|
|
|
# - dependencies
|
2022-04-09 20:24:16 +00:00
|
|
|
|
2021-11-10 21:25:50 +00:00
|
|
|
- name: deploy-preview
|
2023-05-02 10:10:14 +00:00
|
|
|
image: williamjackson/netlify-cli
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2023-05-02 10:10:14 +00:00
|
|
|
user: root # The rest runs as root and thus the permissions wouldn't work
|
2021-11-10 21:25:50 +00:00
|
|
|
environment:
|
|
|
|
NETLIFY_AUTH_TOKEN:
|
|
|
|
from_secret: netlify_auth_token
|
|
|
|
NETLIFY_SITE_ID:
|
|
|
|
from_secret: netlify_site_id
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: gitea_token
|
|
|
|
commands:
|
2022-02-23 12:05:06 +00:00
|
|
|
- cp -r dist dist-preview
|
|
|
|
# Override the default api url used for preview
|
2022-09-26 16:17:48 +00:00
|
|
|
- sed -i 's|http://localhost:3456|https://try.vikunja.io|g' dist-preview/index.html
|
2022-04-09 18:00:29 +00:00
|
|
|
- apk add --no-cache perl-utils
|
2023-01-18 15:54:37 +00:00
|
|
|
# create via:
|
|
|
|
# `shasum -a 384 ./scripts/deploy-preview-netlify.mjs > ./scripts/deploy-preview-netlify.mjs.sha384`
|
|
|
|
- shasum -a 384 -c ./scripts/deploy-preview-netlify.mjs.sha384
|
|
|
|
- node ./scripts/deploy-preview-netlify.mjs
|
2021-11-10 21:25:50 +00:00
|
|
|
depends_on:
|
|
|
|
- build-prod
|
2021-11-13 14:43:34 +00:00
|
|
|
when:
|
2021-11-13 15:36:53 +00:00
|
|
|
event:
|
|
|
|
include:
|
|
|
|
- pull_request
|
2021-11-10 21:25:50 +00:00
|
|
|
|
2019-04-25 18:03:19 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2022-11-05 13:24:24 +00:00
|
|
|
type: docker
|
2019-04-25 18:03:19 +00:00
|
|
|
name: release-latest
|
|
|
|
|
2021-01-14 21:50:31 +00:00
|
|
|
depends_on:
|
|
|
|
- build
|
|
|
|
|
2019-04-25 18:03:19 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
2021-02-10 17:17:20 +00:00
|
|
|
- main
|
2019-04-25 18:03:19 +00:00
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
steps:
|
2020-05-09 20:09:46 +00:00
|
|
|
- name: fetch-tags
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
|
|
|
|
2022-09-21 18:29:29 +00:00
|
|
|
# - name: restore-cache
|
|
|
|
# image: meltwater/drone-cache:dev
|
2022-11-04 17:29:02 +00:00
|
|
|
# pull: always
|
2022-09-21 18:29:29 +00:00
|
|
|
# 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
|
|
|
|
# cache_key: '{{ .Repo.Name }}_{{ checksum "pnpm-lock.yaml" }}_{{ arch }}_{{ os }}'
|
|
|
|
# mount:
|
|
|
|
# - .cache
|
2020-12-06 17:45:44 +00:00
|
|
|
|
2019-04-25 18:03:19 +00:00
|
|
|
- name: build
|
2024-01-16 11:49:00 +00:00
|
|
|
image: node:20.11.0-alpine
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2020-12-06 17:45:44 +00:00
|
|
|
environment:
|
2022-04-09 20:24:16 +00:00
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
2023-06-18 13:44:16 +00:00
|
|
|
SENTRY_AUTH_TOKEN:
|
|
|
|
from_secret: sentry_auth_token
|
|
|
|
SENTRY_ORG: vikunja
|
|
|
|
SENTRY_PROJECT: frontend-oss
|
2023-09-04 11:07:48 +00:00
|
|
|
PUPPETEER_SKIP_DOWNLOAD: true
|
2018-09-08 15:44:29 +00:00
|
|
|
commands:
|
2022-10-25 07:16:37 +00:00
|
|
|
- apk add git
|
2023-01-06 17:48:40 +00:00
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
2022-10-25 07:16:37 +00:00
|
|
|
- pnpm install --fetch-timeout 100000 --frozen-lockfile
|
2022-04-09 18:00:29 +00:00
|
|
|
- pnpm run lint
|
2020-05-09 19:57:59 +00:00
|
|
|
- "echo '{\"VERSION\": \"'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'\"}' > src/version.json"
|
2022-04-09 18:00:29 +00:00
|
|
|
- pnpm run build
|
2020-05-05 21:34:58 +00:00
|
|
|
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
2022-09-21 18:29:29 +00:00
|
|
|
# depends_on:
|
|
|
|
# - restore-cache
|
2018-09-08 15:51:34 +00:00
|
|
|
|
2019-04-25 18:03:19 +00:00
|
|
|
- name: static
|
|
|
|
image: kolaente/zip
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2018-09-08 15:52:06 +00:00
|
|
|
commands:
|
2023-09-04 20:19:37 +00:00
|
|
|
- cp src/version.json dist
|
2018-09-08 15:52:06 +00:00
|
|
|
- cd dist
|
2021-02-10 17:17:20 +00:00
|
|
|
- zip -r ../vikunja-frontend-unstable.zip *
|
2018-09-08 15:52:06 +00:00
|
|
|
- cd ..
|
2019-04-25 18:05:12 +00:00
|
|
|
depends_on: [ build ]
|
2018-09-08 15:44:29 +00:00
|
|
|
|
2019-04-25 18:05:12 +00:00
|
|
|
- name: release
|
2021-10-02 13:43:15 +00:00
|
|
|
image: plugins/s3
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2019-04-25 18:03:19 +00:00
|
|
|
settings:
|
2020-07-14 11:45:57 +00:00
|
|
|
bucket: vikunja-releases
|
2019-04-25 18:03:19 +00:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
2020-07-14 11:45:57 +00:00
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
2019-04-25 18:03:19 +00:00
|
|
|
path_style: true
|
2021-02-10 17:17:20 +00:00
|
|
|
source: vikunja-frontend-unstable.zip
|
2020-03-01 21:53:40 +00:00
|
|
|
target: /frontend/
|
2019-04-25 18:05:12 +00:00
|
|
|
depends_on: [ static ]
|
2019-04-25 18:03:19 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2022-11-05 13:24:24 +00:00
|
|
|
type: docker
|
2019-04-25 18:03:19 +00:00
|
|
|
name: release-version
|
2018-09-08 15:44:29 +00:00
|
|
|
|
2021-01-14 21:50:31 +00:00
|
|
|
depends_on:
|
|
|
|
- build
|
|
|
|
|
2019-04-25 18:03:19 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
steps:
|
2020-05-09 20:09:46 +00:00
|
|
|
- name: fetch-tags
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
|
|
|
|
2022-09-21 18:29:29 +00:00
|
|
|
# - name: restore-cache
|
|
|
|
# image: meltwater/drone-cache:dev
|
2022-11-04 17:29:02 +00:00
|
|
|
# pull: always
|
2022-09-21 18:29:29 +00:00
|
|
|
# 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
|
|
|
|
# cache_key: '{{ .Repo.Name }}_{{ checksum "pnpm-lock.yaml" }}_{{ arch }}_{{ os }}'
|
|
|
|
# mount:
|
|
|
|
# - .cache
|
2020-12-06 17:45:44 +00:00
|
|
|
|
2019-04-25 18:03:19 +00:00
|
|
|
- name: build
|
2024-01-16 11:49:00 +00:00
|
|
|
image: node:20.11.0-alpine
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2020-12-06 17:45:44 +00:00
|
|
|
environment:
|
2022-04-09 20:24:16 +00:00
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
2023-06-18 13:44:16 +00:00
|
|
|
SENTRY_AUTH_TOKEN:
|
|
|
|
from_secret: sentry_auth_token
|
|
|
|
SENTRY_ORG: vikunja
|
|
|
|
SENTRY_PROJECT: frontend-oss
|
2019-04-25 18:03:19 +00:00
|
|
|
commands:
|
2022-10-25 07:16:37 +00:00
|
|
|
- apk add git
|
2022-09-26 12:49:48 +00:00
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
2022-10-25 07:16:37 +00:00
|
|
|
- pnpm install --fetch-timeout 100000 --frozen-lockfile
|
2022-04-09 18:00:29 +00:00
|
|
|
- pnpm run lint
|
2020-05-09 19:57:59 +00:00
|
|
|
- "echo '{\"VERSION\": \"'$(git describe --tags --always --abbrev=10 | sed 's/-/+/' | sed 's/^v//' | sed 's/-g/-/')'\"}' > src/version.json"
|
2022-04-09 18:00:29 +00:00
|
|
|
- pnpm run build
|
2020-05-05 21:34:58 +00:00
|
|
|
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
2022-09-21 18:29:29 +00:00
|
|
|
# depends_on:
|
|
|
|
# - restore-cache
|
2019-04-25 18:03:19 +00:00
|
|
|
|
|
|
|
- name: static
|
|
|
|
image: kolaente/zip
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2019-04-25 18:03:19 +00:00
|
|
|
commands:
|
2023-09-04 20:19:37 +00:00
|
|
|
- cp src/version.json dist
|
2019-04-25 18:03:19 +00:00
|
|
|
- cd dist
|
|
|
|
- zip -r ../vikunja-frontend-${DRONE_TAG##v}.zip *
|
|
|
|
- cd ..
|
2019-04-25 18:05:12 +00:00
|
|
|
depends_on: [ build ]
|
2019-04-25 18:03:19 +00:00
|
|
|
|
2019-04-25 18:05:12 +00:00
|
|
|
- name: release
|
2021-10-02 13:43:15 +00:00
|
|
|
image: plugins/s3
|
2022-11-04 17:29:02 +00:00
|
|
|
pull: always
|
2019-04-25 18:03:19 +00:00
|
|
|
settings:
|
2020-07-14 11:45:57 +00:00
|
|
|
bucket: vikunja-releases
|
2019-04-25 18:03:19 +00:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
2020-07-14 11:45:57 +00:00
|
|
|
endpoint: https://s3.fr-par.scw.cloud
|
|
|
|
region: fr-par
|
2019-04-25 18:03:19 +00:00
|
|
|
path_style: true
|
|
|
|
source: vikunja-frontend-${DRONE_TAG##v}.zip
|
2020-03-01 21:53:40 +00:00
|
|
|
target: /frontend/
|
2019-04-25 18:05:12 +00:00
|
|
|
depends_on: [ static ]
|
2018-09-08 15:44:29 +00:00
|
|
|
|
2020-10-18 12:14:03 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2022-11-05 13:24:24 +00:00
|
|
|
type: docker
|
2020-10-18 12:14:03 +00:00
|
|
|
name: trigger-desktop-update
|
|
|
|
|
2020-10-18 18:41:58 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
2021-02-10 17:17:20 +00:00
|
|
|
- main
|
2020-10-18 18:41:58 +00:00
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
2021-08-06 08:26:16 +00:00
|
|
|
depends_on:
|
|
|
|
- release-latest
|
2020-10-18 12:14:03 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: trigger
|
2021-08-06 08:26:16 +00:00
|
|
|
image: plugins/downstream
|
2020-10-18 12:14:03 +00:00
|
|
|
settings:
|
|
|
|
server: https://drone.kolaente.de
|
|
|
|
token:
|
|
|
|
from_secret: drone_token
|
|
|
|
repositories:
|
2021-02-10 17:17:20 +00:00
|
|
|
- vikunja/desktop@main
|
2020-10-18 12:14:03 +00:00
|
|
|
|
2020-06-22 11:55:03 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-11-12 13:43:29 +00:00
|
|
|
name: docker-release
|
2020-06-22 11:55:03 +00:00
|
|
|
|
2020-12-16 19:23:38 +00:00
|
|
|
depends_on:
|
2023-06-16 18:07:43 +00:00
|
|
|
- build
|
2020-12-16 19:23:38 +00:00
|
|
|
|
2020-06-22 11:55:03 +00:00
|
|
|
trigger:
|
2020-06-22 17:13:43 +00:00
|
|
|
ref:
|
2021-02-10 17:17:20 +00:00
|
|
|
- refs/heads/main
|
2020-06-22 17:13:43 +00:00
|
|
|
- "refs/tags/**"
|
2021-10-31 14:10:51 +00:00
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- cron
|
2020-06-22 11:55:03 +00:00
|
|
|
|
|
|
|
steps:
|
2022-11-12 13:43:29 +00:00
|
|
|
- name: fetch-tags
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
2020-04-06 19:58:49 +00:00
|
|
|
|
2021-09-05 11:44:05 +00:00
|
|
|
- name: docker-unstable
|
2022-11-12 13:43:29 +00:00
|
|
|
image: thegeeklab/drone-docker-buildx
|
|
|
|
privileged: true
|
2023-01-05 13:50:32 +00:00
|
|
|
pull: always
|
2020-12-10 14:46:51 +00:00
|
|
|
settings:
|
2020-12-16 19:23:38 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/frontend
|
2022-11-12 13:43:29 +00:00
|
|
|
tags: unstable
|
2020-12-16 19:23:38 +00:00
|
|
|
build_args:
|
2023-06-16 18:07:43 +00:00
|
|
|
- USE_RELEASE=false
|
2022-11-12 13:43:29 +00:00
|
|
|
platforms:
|
|
|
|
- linux/386
|
|
|
|
- linux/amd64
|
|
|
|
- linux/arm/v6
|
|
|
|
- linux/arm/v7
|
|
|
|
- linux/arm64/v8
|
|
|
|
depends_on: [ fetch-tags ]
|
2020-12-16 19:23:38 +00:00
|
|
|
when:
|
|
|
|
ref:
|
2021-02-10 17:17:20 +00:00
|
|
|
- refs/heads/main
|
2020-12-10 14:46:51 +00:00
|
|
|
|
2023-01-11 17:15:24 +00:00
|
|
|
- name: generate-tags
|
|
|
|
image: thegeeklab/docker-autotag
|
|
|
|
environment:
|
|
|
|
DOCKER_AUTOTAG_VERSION: ${DRONE_TAG}
|
|
|
|
DOCKER_AUTOTAG_EXTRA_TAGS: latest
|
2023-01-24 16:46:28 +00:00
|
|
|
DOCKER_AUTOTAG_OUTPUT_FILE: .tags
|
2023-01-11 17:15:24 +00:00
|
|
|
depends_on: [ fetch-tags ]
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
|
|
|
|
2022-11-12 13:43:29 +00:00
|
|
|
- name: docker-release
|
|
|
|
image: thegeeklab/drone-docker-buildx
|
|
|
|
privileged: true
|
2023-01-05 13:50:32 +00:00
|
|
|
pull: always
|
2020-06-22 11:55:03 +00:00
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: vikunja/frontend
|
2020-12-16 19:23:38 +00:00
|
|
|
build_args:
|
2023-06-16 18:07:43 +00:00
|
|
|
- USE_RELEASE=false
|
2022-11-12 13:43:29 +00:00
|
|
|
platforms:
|
|
|
|
- linux/386
|
|
|
|
- linux/amd64
|
|
|
|
- linux/arm/v6
|
|
|
|
- linux/arm/v7
|
|
|
|
- linux/arm64/v8
|
2023-01-11 17:15:24 +00:00
|
|
|
depends_on: [ generate-tags ]
|
2021-02-12 19:02:51 +00:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/tags/**"
|
2020-06-22 16:57:20 +00:00
|
|
|
|
2020-06-22 17:13:43 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: notify
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
2021-02-10 17:17:20 +00:00
|
|
|
- refs/heads/main
|
2020-06-22 17:13:43 +00:00
|
|
|
- "refs/tags/**"
|
2021-10-31 14:10:51 +00:00
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- cron
|
2020-06-22 17:13:43 +00:00
|
|
|
|
|
|
|
depends_on:
|
2021-04-07 14:41:48 +00:00
|
|
|
- build
|
2020-06-22 17:13:43 +00:00
|
|
|
- release-version
|
|
|
|
- release-latest
|
2021-04-07 14:41:48 +00:00
|
|
|
- trigger-desktop-update
|
2022-11-12 13:43:29 +00:00
|
|
|
- docker-release
|
2020-06-22 17:13:43 +00:00
|
|
|
|
|
|
|
steps:
|
2021-04-07 14:41:48 +00:00
|
|
|
- name: notify
|
|
|
|
image: plugins/matrix
|
2020-06-22 17:13:43 +00:00
|
|
|
settings:
|
2021-04-07 14:41:48 +00:00
|
|
|
homeserver: https://matrix.org
|
|
|
|
roomid: WqBDCxzghKcNflkErL:matrix.org
|
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
password:
|
|
|
|
from_secret: matrix_password
|
2020-06-22 17:13:43 +00:00
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
2021-06-23 23:24:57 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-09-05 09:49:53 +00:00
|
|
|
type: docker
|
2021-07-13 10:06:50 +00:00
|
|
|
name: update-translations
|
2021-06-23 23:24:57 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
2023-09-06 13:18:27 +00:00
|
|
|
include:
|
|
|
|
- main
|
2021-06-23 23:24:57 +00:00
|
|
|
event:
|
2023-09-06 13:18:27 +00:00
|
|
|
include:
|
2023-09-06 13:24:44 +00:00
|
|
|
- cron
|
|
|
|
cron:
|
|
|
|
- update_translations
|
2021-06-23 23:24:57 +00:00
|
|
|
|
|
|
|
steps:
|
2021-09-05 09:35:50 +00:00
|
|
|
- name: download
|
|
|
|
pull: always
|
2024-01-07 19:20:14 +00:00
|
|
|
image: ghcr.io/kolaente/kolaente/drone-crowdin-v2:latest
|
2021-09-05 09:35:50 +00:00
|
|
|
settings:
|
2023-09-06 13:18:27 +00:00
|
|
|
crowdin_key:
|
2021-09-05 09:35:50 +00:00
|
|
|
from_secret: crowdin_key
|
2023-09-06 13:18:27 +00:00
|
|
|
project_id: 462614
|
|
|
|
target: download
|
|
|
|
download_to: src/i18n/lang/
|
|
|
|
download_export_approved_only: true
|
2021-09-05 09:35:50 +00:00
|
|
|
|
2021-09-05 11:06:45 +00:00
|
|
|
- name: move-files
|
|
|
|
pull: always
|
|
|
|
image: bash
|
|
|
|
depends_on:
|
|
|
|
- download
|
|
|
|
commands:
|
|
|
|
- mv src/i18n/lang/*/*.json src/i18n/lang
|
|
|
|
|
2021-09-05 09:35:50 +00:00
|
|
|
- name: push
|
|
|
|
pull: always
|
|
|
|
image: appleboy/drone-git-push
|
2021-09-05 11:03:15 +00:00
|
|
|
depends_on:
|
2021-09-05 11:06:45 +00:00
|
|
|
- move-files
|
2021-09-05 09:35:50 +00:00
|
|
|
settings:
|
|
|
|
author_email: "frederik@vikunja.io"
|
|
|
|
author_name: Frederick [Bot]
|
|
|
|
branch: main
|
|
|
|
commit: true
|
2024-01-04 12:22:27 +00:00
|
|
|
commit_message: "chore(i18n): update translations via Crowdin"
|
2021-09-05 10:01:53 +00:00
|
|
|
remote: "ssh://git@kolaente.dev:9022/vikunja/frontend.git"
|
2021-09-05 09:49:53 +00:00
|
|
|
ssh_key:
|
2023-09-06 16:03:09 +00:00
|
|
|
from_secret: git_push_ssh_key
|
2021-07-13 10:06:50 +00:00
|
|
|
|
|
|
|
- name: upload
|
|
|
|
pull: always
|
2024-01-07 19:20:14 +00:00
|
|
|
image: ghcr.io/kolaente/kolaente/drone-crowdin-v2:latest
|
2021-09-05 11:02:43 +00:00
|
|
|
depends_on:
|
|
|
|
- clone
|
2021-06-23 23:24:57 +00:00
|
|
|
settings:
|
2023-09-06 13:18:27 +00:00
|
|
|
crowdin_key:
|
|
|
|
from_secret: crowdin_key
|
|
|
|
project_id: 462614
|
|
|
|
target: upload
|
2023-09-06 13:22:51 +00:00
|
|
|
upload_files:
|
2023-09-06 13:18:27 +00:00
|
|
|
src/i18n/lang/en.json: en.json
|
2021-11-10 21:25:50 +00:00
|
|
|
---
|
|
|
|
kind: signature
|
2024-01-16 11:49:00 +00:00
|
|
|
hmac: a044c7c4db3c2a11299d4d118397e9d25be36db241723a1bbd0a2f9cc90ffdac
|
2021-11-10 21:25:50 +00:00
|
|
|
|
|
|
|
...
|