2024-06-27 23:10:20 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: build
|
|
|
|
|
2024-09-22 20:15:52 +02:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
include:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
2024-06-27 23:10:20 +02:00
|
|
|
steps:
|
|
|
|
- name: dependencies
|
2024-10-29 00:23:29 +00:00
|
|
|
image: node:22-alpine
|
2024-06-27 23:10:20 +02:00
|
|
|
pull: always
|
|
|
|
environment:
|
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
|
|
commands:
|
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
|
|
- pnpm install --frozen-lockfile --fetch-timeout 100000
|
|
|
|
|
|
|
|
- name: lint
|
2024-10-29 00:23:29 +00:00
|
|
|
image: node:22-alpine
|
2024-06-27 23:10:20 +02:00
|
|
|
pull: always
|
|
|
|
environment:
|
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
|
|
commands:
|
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
|
|
- pnpm run lint
|
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
|
|
|
- name: build
|
2024-10-29 00:23:29 +00:00
|
|
|
image: node:22-alpine
|
2024-06-27 23:10:20 +02:00
|
|
|
pull: always
|
|
|
|
environment:
|
|
|
|
PNPM_CACHE_FOLDER: .cache/pnpm
|
|
|
|
commands:
|
|
|
|
- corepack enable && pnpm config set store-dir .cache/pnpm
|
|
|
|
- pnpm run build
|
|
|
|
depends_on:
|
|
|
|
- dependencies
|
|
|
|
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
pull: true
|
|
|
|
depends_on:
|
2024-07-02 10:32:25 +02:00
|
|
|
- lint
|
2024-06-27 23:10:20 +02:00
|
|
|
- build
|
|
|
|
settings:
|
|
|
|
username:
|
2024-07-02 10:41:12 +02:00
|
|
|
from_secret: docker_username_vikunjadevuser
|
2024-06-27 23:10:20 +02:00
|
|
|
password:
|
2024-07-02 10:41:12 +02:00
|
|
|
from_secret: docker_password_vikunjadevuser
|
2024-06-27 23:10:20 +02:00
|
|
|
repo: vikunja/website
|
|
|
|
tags:
|
|
|
|
- next
|
|
|
|
when:
|
|
|
|
event: [ push ]
|
|
|
|
branch: [ main ]
|