feat: update drone config to release single-binary bundles
This commit is contained in:
parent
60006aeac5
commit
e12e9f1bf2
396
.drone.yml
396
.drone.yml
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: testing
|
name: build-and-test-api
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
@ -338,7 +338,7 @@ steps:
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build-frontend
|
name: build-and-test-frontend
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
@ -358,26 +358,6 @@ services:
|
|||||||
VIKUNJA_LOG_LEVEL: DEBUG
|
VIKUNJA_LOG_LEVEL: DEBUG
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Disabled until we figure out why it is so slow
|
|
||||||
# - name: restore-cache
|
|
||||||
# image: meltwater/drone-cache:dev
|
|
||||||
# pull: always
|
|
||||||
# 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
|
|
||||||
|
|
||||||
- name: dependencies
|
- name: dependencies
|
||||||
image: node:20.11.0-alpine
|
image: node:20.11.0-alpine
|
||||||
pull: always
|
pull: always
|
||||||
@ -459,26 +439,6 @@ steps:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- build-prod
|
- build-prod
|
||||||
|
|
||||||
# - name: rebuild-cache
|
|
||||||
# image: meltwater/drone-cache:dev
|
|
||||||
# pull: always
|
|
||||||
# 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
|
|
||||||
|
|
||||||
- name: deploy-preview
|
- name: deploy-preview
|
||||||
image: williamjackson/netlify-cli
|
image: williamjackson/netlify-cli
|
||||||
pull: always
|
pull: always
|
||||||
@ -513,7 +473,7 @@ type: docker
|
|||||||
name: generate-swagger-docs
|
name: generate-swagger-docs
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- testing
|
- build-and-test-api
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
@ -552,16 +512,13 @@ steps:
|
|||||||
from_secret: git_push_ssh_key
|
from_secret: git_push_ssh_key
|
||||||
|
|
||||||
---
|
---
|
||||||
########
|
|
||||||
# Build a release when tagging
|
|
||||||
########
|
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: release
|
name: release
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- testing
|
- build-and-test-api
|
||||||
|
- build-and-test-frontend
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /source
|
base: /source
|
||||||
@ -579,6 +536,30 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
|
|
||||||
|
- name: frontend-dependencies
|
||||||
|
image: node:20.11.0-alpine
|
||||||
|
pull: always
|
||||||
|
environment:
|
||||||
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
||||||
|
CYPRESS_CACHE_FOLDER: .cache/cypress
|
||||||
|
PUPPETEER_SKIP_DOWNLOAD: true
|
||||||
|
commands:
|
||||||
|
- cd frontend
|
||||||
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
||||||
|
- pnpm install --fetch-timeout 100000
|
||||||
|
|
||||||
|
- name: frontend-build
|
||||||
|
image: node:20.11.0-alpine
|
||||||
|
pull: always
|
||||||
|
environment:
|
||||||
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
||||||
|
commands:
|
||||||
|
- cd frontend
|
||||||
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
||||||
|
- pnpm run build
|
||||||
|
depends_on:
|
||||||
|
- frontend-dependencies
|
||||||
|
|
||||||
# We're statically compiling the magefile to avoid race condition issues caused by multiple pipeline steps
|
# 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.
|
# 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
|
||||||
@ -612,7 +593,9 @@ steps:
|
|||||||
- export PATH=$PATH:$GOPATH/bin
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- go install github.com/magefile/mage
|
- go install github.com/magefile/mage
|
||||||
- ./mage-static release:windows
|
- ./mage-static release:windows
|
||||||
depends_on: [ before-static-build ]
|
depends_on:
|
||||||
|
- before-static-build
|
||||||
|
- frontend-build
|
||||||
|
|
||||||
- name: static-build-linux
|
- name: static-build-linux
|
||||||
image: techknowlogick/xgo:latest
|
image: techknowlogick/xgo:latest
|
||||||
@ -626,7 +609,9 @@ steps:
|
|||||||
- export PATH=$PATH:$GOPATH/bin
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- go install github.com/magefile/mage
|
- go install github.com/magefile/mage
|
||||||
- ./mage-static release:linux
|
- ./mage-static release:linux
|
||||||
depends_on: [ before-static-build ]
|
depends_on:
|
||||||
|
- before-static-build
|
||||||
|
- frontend-build
|
||||||
|
|
||||||
- name: static-build-darwin
|
- name: static-build-darwin
|
||||||
image: techknowlogick/xgo:latest
|
image: techknowlogick/xgo:latest
|
||||||
@ -640,7 +625,9 @@ steps:
|
|||||||
- export PATH=$PATH:$GOPATH/bin
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- go install github.com/magefile/mage
|
- go install github.com/magefile/mage
|
||||||
- ./mage-static release:darwin
|
- ./mage-static release:darwin
|
||||||
depends_on: [ before-static-build ]
|
depends_on:
|
||||||
|
- before-static-build
|
||||||
|
- frontend-build
|
||||||
|
|
||||||
- name: after-build-compress
|
- name: after-build-compress
|
||||||
image: kolaente/upx
|
image: kolaente/upx
|
||||||
@ -678,7 +665,7 @@ steps:
|
|||||||
detach_sign: true
|
detach_sign: true
|
||||||
|
|
||||||
# Push the releases to our pseudo-s3-bucket
|
# Push the releases to our pseudo-s3-bucket
|
||||||
- name: release-latest
|
- name: release-unstable
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
pull: always
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
@ -794,53 +781,6 @@ steps:
|
|||||||
- tag
|
- tag
|
||||||
depends_on: [ build-os-packages-version ]
|
depends_on: [ build-os-packages-version ]
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: deploy-docs
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
base: /go
|
|
||||||
path: src/code.vikunja.io/api
|
|
||||||
|
|
||||||
clone:
|
|
||||||
depth: 50
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: theme
|
|
||||||
image: kolaente/toolbox
|
|
||||||
pull: always
|
|
||||||
commands:
|
|
||||||
- mkdir docs/themes/vikunja -p
|
|
||||||
- cd docs/themes/vikunja
|
|
||||||
- wget https://dl.vikunja.io/theme/vikunja-theme.tar.gz
|
|
||||||
- tar -xzf vikunja-theme.tar.gz
|
|
||||||
|
|
||||||
- name: build
|
|
||||||
image: klakegg/hugo:0.111.3
|
|
||||||
pull: always
|
|
||||||
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: always
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/docs
|
|
||||||
context: docs/
|
|
||||||
dockerfile: docs/Dockerfile
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@ -848,7 +788,8 @@ type: docker
|
|||||||
name: docker-release
|
name: docker-release
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- testing
|
- build-and-test-api
|
||||||
|
- build-and-test-frontend
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
@ -870,7 +811,7 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: vikunja/api
|
repo: vikunja/vikunja
|
||||||
tags: unstable
|
tags: unstable
|
||||||
platforms:
|
platforms:
|
||||||
- linux/386
|
- linux/386
|
||||||
@ -903,7 +844,7 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
repo: vikunja/api
|
repo: vikunja/vikunja
|
||||||
platforms:
|
platforms:
|
||||||
- linux/386
|
- linux/386
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
@ -915,43 +856,14 @@ steps:
|
|||||||
ref:
|
ref:
|
||||||
- "refs/tags/**"
|
- "refs/tags/**"
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: notify
|
name: frontend-release-unstable
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- "refs/tags/**"
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- testing
|
- build-and-test-frontend
|
||||||
- release
|
|
||||||
- deploy-docs
|
|
||||||
- docker-release
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: notify
|
|
||||||
image: plugins/matrix
|
|
||||||
settings:
|
|
||||||
homeserver: https://matrix.org
|
|
||||||
roomid: WqBDCxzghKcNflkErL:matrix.org
|
|
||||||
username:
|
|
||||||
from_secret: matrix_username
|
|
||||||
password:
|
|
||||||
from_secret: matrix_password
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: frontend-release-latest
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build-frontend
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
@ -965,24 +877,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
|
|
||||||
# - name: restore-cache
|
|
||||||
# image: meltwater/drone-cache:dev
|
|
||||||
# pull: always
|
|
||||||
# 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
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node:20.11.0-alpine
|
image: node:20.11.0-alpine
|
||||||
pull: always
|
pull: always
|
||||||
@ -995,14 +889,11 @@ steps:
|
|||||||
PUPPETEER_SKIP_DOWNLOAD: true
|
PUPPETEER_SKIP_DOWNLOAD: true
|
||||||
commands:
|
commands:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
- apk add git
|
|
||||||
- corepack enable && pnpm config set store-dir .cache/pnpm
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
||||||
- pnpm install --fetch-timeout 100000 --frozen-lockfile
|
- pnpm install --fetch-timeout 100000 --frozen-lockfile
|
||||||
- pnpm run lint
|
- pnpm run lint
|
||||||
- pnpm run build
|
- pnpm run build
|
||||||
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
||||||
# depends_on:
|
|
||||||
# - restore-cache
|
|
||||||
|
|
||||||
- name: static
|
- name: static
|
||||||
image: kolaente/zip
|
image: kolaente/zip
|
||||||
@ -1011,7 +902,6 @@ steps:
|
|||||||
- cd frontend
|
- cd frontend
|
||||||
- cd dist
|
- cd dist
|
||||||
- zip -r ../vikunja-frontend-unstable.zip *
|
- zip -r ../vikunja-frontend-unstable.zip *
|
||||||
- cd ..
|
|
||||||
depends_on: [ build ]
|
depends_on: [ build ]
|
||||||
|
|
||||||
- name: release
|
- name: release
|
||||||
@ -1033,10 +923,10 @@ steps:
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: release-frontend-version
|
name: frontend-release-version
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-frontend
|
- build-and-test-frontend
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
@ -1048,24 +938,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
|
|
||||||
# - name: restore-cache
|
|
||||||
# image: meltwater/drone-cache:dev
|
|
||||||
# pull: always
|
|
||||||
# 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
|
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node:20.11.0-alpine
|
image: node:20.11.0-alpine
|
||||||
pull: always
|
pull: always
|
||||||
@ -1077,13 +949,10 @@ steps:
|
|||||||
SENTRY_PROJECT: frontend-oss
|
SENTRY_PROJECT: frontend-oss
|
||||||
commands:
|
commands:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
- apk add git
|
|
||||||
- corepack enable && pnpm config set store-dir .cache/pnpm
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
||||||
- pnpm install --fetch-timeout 100000 --frozen-lockfile
|
- pnpm install --fetch-timeout 100000 --frozen-lockfile
|
||||||
- pnpm run build
|
- pnpm run build
|
||||||
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
- sed -i 's/http\:\\/\\/localhost\\:3456\\/api\\/v1/\\/api\\/v1/g' dist/index.html # Override the default api url used for developing
|
||||||
# depends_on:
|
|
||||||
# - restore-cache
|
|
||||||
|
|
||||||
- name: static
|
- name: static
|
||||||
image: kolaente/zip
|
image: kolaente/zip
|
||||||
@ -1113,89 +982,6 @@ steps:
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: frontend-docker-release
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build-frontend
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- "refs/tags/**"
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- cron
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: fetch-tags
|
|
||||||
image: docker:git
|
|
||||||
commands:
|
|
||||||
- git fetch --tags
|
|
||||||
|
|
||||||
- name: docker-unstable
|
|
||||||
image: thegeeklab/drone-docker-buildx
|
|
||||||
privileged: true
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/frontend
|
|
||||||
tags: unstable
|
|
||||||
build_args:
|
|
||||||
- USE_RELEASE=false
|
|
||||||
platforms:
|
|
||||||
- linux/386
|
|
||||||
- linux/amd64
|
|
||||||
- linux/arm/v6
|
|
||||||
- linux/arm/v7
|
|
||||||
- linux/arm64/v8
|
|
||||||
context: ./frontend
|
|
||||||
dockerfile: ./frontend/Dockerfile
|
|
||||||
depends_on: [ fetch-tags ]
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
|
|
||||||
- name: generate-tags
|
|
||||||
image: thegeeklab/docker-autotag
|
|
||||||
environment:
|
|
||||||
DOCKER_AUTOTAG_VERSION: ${DRONE_TAG}
|
|
||||||
DOCKER_AUTOTAG_EXTRA_TAGS: latest
|
|
||||||
DOCKER_AUTOTAG_OUTPUT_FILE: .tags
|
|
||||||
depends_on: [ fetch-tags ]
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- "refs/tags/**"
|
|
||||||
|
|
||||||
- name: docker-release
|
|
||||||
image: thegeeklab/drone-docker-buildx
|
|
||||||
privileged: true
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: vikunja/frontend
|
|
||||||
build_args:
|
|
||||||
- USE_RELEASE=false
|
|
||||||
platforms:
|
|
||||||
- linux/386
|
|
||||||
- linux/amd64
|
|
||||||
- linux/arm/v6
|
|
||||||
- linux/arm/v7
|
|
||||||
- linux/arm64/v8
|
|
||||||
context: ./frontend
|
|
||||||
dockerfile: ./frontend/Dockerfile
|
|
||||||
depends_on: [ generate-tags ]
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- "refs/tags/**"
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: update-translations
|
name: update-translations
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
@ -1262,7 +1048,7 @@ type: docker
|
|||||||
name: desktop-build
|
name: desktop-build
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- frontend-release-latest
|
- frontend-release-unstable
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
@ -1343,7 +1129,8 @@ type: docker
|
|||||||
name: desktop-release
|
name: desktop-release
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- frontend-release-latest
|
- frontend-release-unstable
|
||||||
|
- frontend-release-version
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
@ -1493,8 +1280,87 @@ steps:
|
|||||||
# - mc config host add scw-fr-par https://s3.fr-par.scw.cloud $ACCESS_KEY $SECRET_KEY --api S3v4
|
# - mc config host add scw-fr-par https://s3.fr-par.scw.cloud $ACCESS_KEY $SECRET_KEY --api S3v4
|
||||||
# - mc cp ./dist/*.dmg scw-fr-par/vikunja-releases/desktop/$VERSION/
|
# - mc cp ./dist/*.dmg scw-fr-par/vikunja-releases/desktop/$VERSION/
|
||||||
# - mc cp ./dist/*.dmg.blockmap scw-fr-par/vikunja-releases/desktop/$VERSION/
|
# - mc cp ./dist/*.dmg.blockmap scw-fr-par/vikunja-releases/desktop/$VERSION/
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: deploy-docs
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
base: /go
|
||||||
|
path: src/code.vikunja.io/api
|
||||||
|
|
||||||
|
clone:
|
||||||
|
depth: 50
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: theme
|
||||||
|
image: kolaente/toolbox
|
||||||
|
pull: always
|
||||||
|
commands:
|
||||||
|
- mkdir docs/themes/vikunja -p
|
||||||
|
- cd docs/themes/vikunja
|
||||||
|
- wget https://dl.vikunja.io/theme/vikunja-theme.tar.gz
|
||||||
|
- tar -xzf vikunja-theme.tar.gz
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: klakegg/hugo:0.111.3
|
||||||
|
pull: always
|
||||||
|
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: always
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
repo: vikunja/docs
|
||||||
|
context: docs/
|
||||||
|
dockerfile: docs/Dockerfile
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: notify
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
ref:
|
||||||
|
- refs/heads/main
|
||||||
|
- "refs/tags/**"
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build-and-test-api
|
||||||
|
- build-and-test-frontend
|
||||||
|
- release
|
||||||
|
- deploy-docs
|
||||||
|
- docker-release
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: notify
|
||||||
|
image: plugins/matrix
|
||||||
|
settings:
|
||||||
|
homeserver: https://matrix.org
|
||||||
|
roomid: WqBDCxzghKcNflkErL:matrix.org
|
||||||
|
username:
|
||||||
|
from_secret: matrix_username
|
||||||
|
password:
|
||||||
|
from_secret: matrix_password
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: f6100044ee52600c852ff3b200e282c9d450471ca44023e3817f28989fd91fd6
|
hmac: 418392c25980336dc1ae4a5c6db2c67d830c37bad50468847483e40e5aa59e83
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user