2024-08-03 04:32:29 +02:00
|
|
|
image: docker.io/rust:bookworm
|
2024-05-06 09:57:54 +02:00
|
|
|
|
|
|
|
services:
|
2024-05-06 10:14:47 +02:00
|
|
|
- name: docker.io/groonga/pgroonga:latest-alpine-12-slim
|
|
|
|
alias: postgres
|
2024-05-07 23:46:41 +02:00
|
|
|
pull_policy: if-not-present
|
2024-05-06 10:14:47 +02:00
|
|
|
- name: docker.io/redis:7-alpine
|
|
|
|
alias: redis
|
2024-05-07 23:46:41 +02:00
|
|
|
pull_policy: if-not-present
|
2024-05-06 09:57:54 +02:00
|
|
|
|
2024-05-06 22:24:45 +02:00
|
|
|
workflow:
|
|
|
|
rules:
|
2024-05-11 11:37:43 +02:00
|
|
|
- if: $CI_PROJECT_PATH == 'firefish/firefish' || $CI_MERGE_REQUEST_PROJECT_PATH == 'firefish/firefish'
|
2024-05-07 22:26:59 +02:00
|
|
|
changes:
|
|
|
|
paths:
|
2024-05-11 11:37:43 +02:00
|
|
|
- packages/**/*
|
|
|
|
- locales/**/*
|
|
|
|
- scripts/**/*
|
|
|
|
- package.json
|
|
|
|
- Cargo.toml
|
|
|
|
- Cargo.lock
|
|
|
|
- Dockerfile
|
|
|
|
- .dockerignore
|
|
|
|
when: always
|
2024-05-06 22:24:45 +02:00
|
|
|
- when: never
|
|
|
|
|
2024-05-06 09:57:54 +02:00
|
|
|
stages:
|
2024-05-06 12:08:28 +02:00
|
|
|
- test
|
2024-05-23 19:14:15 +02:00
|
|
|
- doc
|
2024-05-06 22:49:22 +02:00
|
|
|
- build
|
2024-06-04 23:50:14 +02:00
|
|
|
- dependency
|
|
|
|
- clean
|
2024-07-11 01:35:49 +02:00
|
|
|
- manage
|
2024-05-06 09:57:54 +02:00
|
|
|
|
|
|
|
variables:
|
2024-05-06 16:40:52 +02:00
|
|
|
POSTGRES_DB: 'firefish_db'
|
|
|
|
POSTGRES_USER: 'firefish'
|
|
|
|
POSTGRES_PASSWORD: 'password'
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: 'trust'
|
|
|
|
DEBIAN_FRONTEND: 'noninteractive'
|
2024-07-02 16:15:18 +02:00
|
|
|
NODE_OPTIONS: '--max_old_space_size=3072'
|
2024-05-06 16:40:52 +02:00
|
|
|
CARGO_PROFILE_DEV_OPT_LEVEL: '0'
|
|
|
|
CARGO_PROFILE_DEV_LTO: 'off'
|
|
|
|
CARGO_PROFILE_DEV_DEBUG: 'none'
|
2024-05-09 16:19:35 +02:00
|
|
|
CARGO_TERM_COLOR: 'always'
|
2024-07-05 17:13:09 +02:00
|
|
|
GIT_CLEAN_FLAGS: -ffdx -e node_modules/ -e built/ -e target/ -e packages/backend-rs/built/ -e ci/target-msrv/
|
2024-05-06 09:57:54 +02:00
|
|
|
|
|
|
|
default:
|
|
|
|
before_script:
|
2024-08-03 05:03:25 +02:00
|
|
|
- apt-get update && apt-get -y --no-install-recommends install curl
|
2024-05-06 18:50:10 +02:00
|
|
|
- curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash -
|
|
|
|
- apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client
|
2024-05-06 09:57:54 +02:00
|
|
|
- corepack enable
|
|
|
|
- corepack prepare pnpm@latest --activate
|
|
|
|
- cp .config/ci.yml .config/default.yml
|
2024-05-06 18:50:10 +02:00
|
|
|
- cp ci/cargo/config.toml /usr/local/cargo/config.toml
|
2024-05-06 09:57:54 +02:00
|
|
|
- export PGPASSWORD="${POSTGRES_PASSWORD}"
|
|
|
|
- psql --host postgres --user "${POSTGRES_USER}" --dbname "${POSTGRES_DB}" --command 'CREATE EXTENSION pgroonga'
|
|
|
|
|
2024-05-11 01:41:33 +02:00
|
|
|
test:build:
|
2024-05-06 12:08:28 +02:00
|
|
|
stage: test
|
2024-05-07 10:36:23 +02:00
|
|
|
rules:
|
2024-05-23 20:34:28 +02:00
|
|
|
- if: $TEST == 'true'
|
|
|
|
when: always
|
2024-05-10 14:39:13 +02:00
|
|
|
- if: $TEST == 'false'
|
|
|
|
when: never
|
2024-05-18 13:49:13 +02:00
|
|
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
|
2024-05-07 10:36:23 +02:00
|
|
|
changes:
|
|
|
|
paths:
|
2024-05-11 03:27:09 +02:00
|
|
|
- packages/backend-rs/**/*
|
|
|
|
- packages/macro-rs/**/*
|
2024-05-07 10:36:23 +02:00
|
|
|
- scripts/**/*
|
|
|
|
- package.json
|
|
|
|
- Cargo.toml
|
|
|
|
- Cargo.lock
|
2024-05-10 14:39:13 +02:00
|
|
|
when: always
|
2024-05-11 01:41:33 +02:00
|
|
|
needs:
|
|
|
|
- job: cargo:clippy
|
|
|
|
optional: true
|
|
|
|
- job: cargo:test
|
|
|
|
optional: true
|
2024-05-06 09:57:54 +02:00
|
|
|
script:
|
2024-05-06 12:08:28 +02:00
|
|
|
- pnpm install --frozen-lockfile
|
2024-05-06 09:57:54 +02:00
|
|
|
- pnpm run build:debug
|
2024-05-06 12:08:28 +02:00
|
|
|
- pnpm run migrate
|
2024-05-20 12:42:15 +02:00
|
|
|
- psql --host postgres --user "${POSTGRES_USER}" --dbname "${POSTGRES_DB}" --command "$(cat docs/downgrade.sql)"
|
2024-05-06 21:58:59 +02:00
|
|
|
|
2024-05-24 14:43:38 +02:00
|
|
|
test:build:backend_ts:
|
2024-05-11 03:27:09 +02:00
|
|
|
stage: test
|
|
|
|
rules:
|
2024-05-23 20:34:28 +02:00
|
|
|
- if: $TEST == 'true'
|
|
|
|
when: always
|
2024-05-11 03:27:09 +02:00
|
|
|
- if: $TEST == 'false'
|
|
|
|
when: never
|
2024-05-18 13:49:13 +02:00
|
|
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
|
2024-05-11 03:27:09 +02:00
|
|
|
changes:
|
|
|
|
paths:
|
2024-05-11 03:28:39 +02:00
|
|
|
- packages/backend-rs/**/*
|
|
|
|
- packages/macro-rs/**/*
|
2024-05-11 03:27:09 +02:00
|
|
|
- scripts/**/*
|
|
|
|
- package.json
|
|
|
|
- Cargo.toml
|
|
|
|
- Cargo.lock
|
2024-05-20 12:42:15 +02:00
|
|
|
- docs/downgrade.sql
|
2024-05-11 03:27:09 +02:00
|
|
|
when: never
|
2024-05-18 13:49:13 +02:00
|
|
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
|
2024-05-11 03:27:09 +02:00
|
|
|
changes:
|
|
|
|
paths:
|
|
|
|
- packages/backend/**/*
|
2024-05-16 09:59:04 +02:00
|
|
|
- packages/firefish-js/**/*
|
2024-05-11 03:27:09 +02:00
|
|
|
when: always
|
|
|
|
before_script:
|
2024-08-03 05:03:25 +02:00
|
|
|
- apt-get update && apt-get -y --no-install-recommends install curl
|
2024-05-11 03:27:09 +02:00
|
|
|
- curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash -
|
2024-05-24 14:43:38 +02:00
|
|
|
- apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client
|
2024-05-11 03:27:09 +02:00
|
|
|
- corepack enable
|
|
|
|
- corepack prepare pnpm@latest --activate
|
2024-05-11 18:03:26 +02:00
|
|
|
- mkdir -p packages/backend-rs/built
|
|
|
|
- cp packages/backend-rs/index.js packages/backend-rs/built/index.js
|
|
|
|
- cp packages/backend-rs/index.d.ts packages/backend-rs/built/index.d.ts
|
2024-05-24 14:43:38 +02:00
|
|
|
- cp ci/cargo/config.toml /usr/local/cargo/config.toml
|
2024-07-03 09:38:50 +02:00
|
|
|
- test -f packages/backend-rs/built/backend-rs.linux-x64-gnu.node || pnpm install --frozen-lockfile
|
|
|
|
- test -f packages/backend-rs/built/backend-rs.linux-x64-gnu.node || pnpm --filter 'backend-rs' run build:debug
|
2024-05-11 03:35:00 +02:00
|
|
|
- cp .config/ci.yml .config/default.yml
|
2024-05-11 03:27:09 +02:00
|
|
|
- export PGPASSWORD="${POSTGRES_PASSWORD}"
|
|
|
|
- psql --host postgres --user "${POSTGRES_USER}" --dbname "${POSTGRES_DB}" --command 'CREATE EXTENSION pgroonga'
|
|
|
|
script:
|
|
|
|
- pnpm install --frozen-lockfile
|
2024-05-29 16:39:22 +02:00
|
|
|
- pnpm --filter 'backend' --filter 'firefish-js' run build:debug
|
2024-05-11 03:27:09 +02:00
|
|
|
- pnpm run migrate
|
2024-05-20 12:42:15 +02:00
|
|
|
- psql --host postgres --user "${POSTGRES_USER}" --dbname "${POSTGRES_DB}" --command "$(cat docs/downgrade.sql)"
|
2024-05-11 03:27:09 +02:00
|
|
|
|
2024-05-24 14:43:38 +02:00
|
|
|
test:build:client:
|
2024-05-07 21:41:20 +02:00
|
|
|
stage: test
|
|
|
|
rules:
|
2024-05-23 20:34:28 +02:00
|
|
|
- if: $TEST == 'true'
|
|
|
|
when: always
|
2024-05-10 14:39:13 +02:00
|
|
|
- if: $TEST == 'false'
|
|
|
|
when: never
|
2024-05-18 13:49:13 +02:00
|
|
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
|
2024-05-07 21:41:20 +02:00
|
|
|
changes:
|
|
|
|
paths:
|
2024-05-11 03:30:38 +02:00
|
|
|
- packages/backend-rs/**/*
|
|
|
|
- packages/macro-rs/**/*
|
2024-05-10 09:32:56 +02:00
|
|
|
- scripts/**/*
|
|
|
|
- package.json
|
2024-05-07 21:41:20 +02:00
|
|
|
- Cargo.toml
|
|
|
|
- Cargo.lock
|
|
|
|
when: never
|
2024-05-18 13:49:13 +02:00
|
|
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
|
2024-05-10 14:05:34 +02:00
|
|
|
changes:
|
|
|
|
paths:
|
2024-05-11 03:27:09 +02:00
|
|
|
- packages/client/**/*
|
|
|
|
- packages/firefish-js/**/*
|
|
|
|
- packages/sw/**/*
|
2024-05-10 14:05:34 +02:00
|
|
|
- locales/**/*
|
|
|
|
when: always
|
2024-05-07 23:46:41 +02:00
|
|
|
services: []
|
2024-05-08 01:26:56 +02:00
|
|
|
before_script:
|
2024-08-03 05:03:25 +02:00
|
|
|
- apt-get update && apt-get -y --no-install-recommends install curl
|
2024-05-08 01:26:56 +02:00
|
|
|
- curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash -
|
|
|
|
- apt-get install -y --no-install-recommends build-essential python3 perl nodejs
|
|
|
|
- corepack enable
|
|
|
|
- corepack prepare pnpm@latest --activate
|
|
|
|
- cp .config/ci.yml .config/default.yml
|
2024-05-07 21:41:20 +02:00
|
|
|
script:
|
|
|
|
- pnpm install --frozen-lockfile
|
2024-05-07 21:49:13 +02:00
|
|
|
- pnpm --filter 'firefish-js' --filter 'client' --filter 'sw' run build:debug
|
2024-05-07 21:41:20 +02:00
|
|
|
|
2024-05-09 16:19:35 +02:00
|
|
|
build:container:
|
2024-05-06 22:49:22 +02:00
|
|
|
stage: build
|
2024-05-23 13:49:49 +02:00
|
|
|
image: docker.io/debian:trixie-slim
|
2024-05-06 23:11:31 +02:00
|
|
|
services: []
|
2024-05-06 22:49:22 +02:00
|
|
|
rules:
|
2024-07-13 15:54:54 +02:00
|
|
|
- if: $BUILD && $CI_PIPELINE_SOURCE == 'schedule'
|
2024-05-18 13:43:58 +02:00
|
|
|
variables:
|
2024-05-20 11:31:23 +02:00
|
|
|
STORAGE_DRIVER: overlay
|
2024-05-07 10:30:57 +02:00
|
|
|
before_script:
|
2024-08-03 05:03:25 +02:00
|
|
|
- apt-get update && apt-get install -y --no-install-recommends ca-certificates fuse-overlayfs buildah
|
2024-06-02 02:30:10 +02:00
|
|
|
- |-
|
|
|
|
sed -i -r 's/"version": "([-0-9]+)",/"version": "\1-dev",/' package.json
|
2024-05-18 07:16:31 +02:00
|
|
|
- echo "${CI_REGISTRY_PASSWORD}" | buildah login --username "${CI_REGISTRY_USER}" --password-stdin "${CI_REGISTRY}"
|
2024-07-13 15:54:54 +02:00
|
|
|
- export IMAGE_TAG_1="${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production"
|
|
|
|
- export IMAGE_TAG_2="${CI_REGISTRY}/${CI_PROJECT_PATH}/develop:not-for-production-$(date +%Y%m%d)"
|
2024-05-21 03:17:44 +02:00
|
|
|
- buildah version
|
2024-05-07 10:30:57 +02:00
|
|
|
script:
|
2024-05-07 22:20:16 +02:00
|
|
|
- |-
|
|
|
|
buildah build \
|
2024-05-20 13:37:57 +02:00
|
|
|
--isolation chroot \
|
|
|
|
--device=/dev/fuse:rw \
|
|
|
|
--security-opt seccomp=unconfined \
|
|
|
|
--security-opt apparmor=unconfined \
|
|
|
|
--cap-add all \
|
2024-05-21 03:17:44 +02:00
|
|
|
--platform linux/amd64 \
|
2024-07-13 15:54:54 +02:00
|
|
|
--tag "${IMAGE_TAG_1}" \
|
|
|
|
--tag "${IMAGE_TAG_2}" \
|
2024-05-07 22:20:16 +02:00
|
|
|
.
|
2024-07-13 15:54:54 +02:00
|
|
|
- buildah inspect "${IMAGE_TAG_1}"
|
|
|
|
- buildah push "${IMAGE_TAG_1}"
|
|
|
|
- buildah push "${IMAGE_TAG_2}"
|
2024-05-06 22:49:22 +02:00
|
|
|
|
2024-06-20 16:22:34 +02:00
|
|
|
cargo:check:msrv:
|
|
|
|
stage: test
|
2024-08-03 04:32:29 +02:00
|
|
|
image: docker.io/rust:1.74-bookworm
|
2024-06-20 16:22:34 +02:00
|
|
|
rules:
|
|
|
|
- if: $TEST == 'true'
|
|
|
|
when: always
|
|
|
|
- if: $TEST == 'false'
|
|
|
|
when: never
|
|
|
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
|
|
|
|
changes:
|
|
|
|
paths:
|
|
|
|
- packages/backend-rs/**/*
|
|
|
|
- packages/macro-rs/**/*
|
|
|
|
- Cargo.toml
|
|
|
|
- Cargo.lock
|
|
|
|
when: always
|
|
|
|
services: []
|
|
|
|
before_script:
|
2024-08-03 05:03:25 +02:00
|
|
|
- apt-get update && apt-get install -y --no-install-recommends build-essential clang mold python3 perl nodejs postgresql-client
|
2024-06-20 16:22:34 +02:00
|
|
|
- cp ci/cargo/config.toml /usr/local/cargo/config.toml
|
2024-07-05 17:13:09 +02:00
|
|
|
- export CARGO_TARGET_DIR='ci/target-msrv'
|
2024-06-20 16:22:34 +02:00
|
|
|
script:
|
|
|
|
- cargo fetch --locked --manifest-path Cargo.toml
|
|
|
|
- cargo check --locked --frozen --all-features
|
|
|
|
|
2024-05-09 16:19:35 +02:00
|
|
|
cargo:test:
|
2024-05-06 21:58:59 +02:00
|
|
|
stage: test
|
|
|
|
rules:
|
2024-05-23 20:34:28 +02:00
|
|
|
- if: $TEST == 'true'
|
|
|
|
when: always
|
2024-05-10 14:39:13 +02:00
|
|
|
- if: $TEST == 'false'
|
|
|
|
when: never
|
2024-05-18 13:49:13 +02:00
|
|
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
|
2024-05-06 21:58:59 +02:00
|
|
|
changes:
|
|
|
|
paths:
|
|
|
|
- packages/backend-rs/**/*
|
|
|
|
- packages/macro-rs/**/*
|
|
|
|
- Cargo.toml
|
|
|
|
- Cargo.lock
|
2024-05-10 14:39:13 +02:00
|
|
|
when: always
|
2024-05-06 21:58:59 +02:00
|
|
|
script:
|
2024-05-09 16:19:35 +02:00
|
|
|
- curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/cargo/bin
|
|
|
|
- cargo test --doc
|
|
|
|
- cargo nextest run
|
2024-05-06 21:58:59 +02:00
|
|
|
|
2024-05-09 16:19:35 +02:00
|
|
|
cargo:clippy:
|
2024-05-06 21:58:59 +02:00
|
|
|
stage: test
|
|
|
|
rules:
|
2024-05-23 20:34:28 +02:00
|
|
|
- if: $TEST == 'true'
|
|
|
|
when: always
|
2024-05-10 14:39:13 +02:00
|
|
|
- if: $TEST == 'false'
|
|
|
|
when: never
|
2024-05-18 13:49:13 +02:00
|
|
|
- if: $CI_COMMIT_BRANCH == 'develop' || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == 'develop'
|
2024-05-06 21:58:59 +02:00
|
|
|
changes:
|
|
|
|
paths:
|
|
|
|
- packages/backend-rs/**/*
|
|
|
|
- packages/macro-rs/**/*
|
2024-05-10 14:39:13 +02:00
|
|
|
when: always
|
2024-05-07 23:54:43 +02:00
|
|
|
services: []
|
|
|
|
before_script:
|
2024-08-03 05:03:25 +02:00
|
|
|
- apt-get update && apt-get install -y --no-install-recommends build-essential clang mold perl
|
2024-05-07 23:54:43 +02:00
|
|
|
- cp ci/cargo/config.toml /usr/local/cargo/config.toml
|
2024-05-07 20:58:21 +02:00
|
|
|
- rustup component add clippy
|
2024-05-07 23:54:43 +02:00
|
|
|
script:
|
2024-05-06 21:58:59 +02:00
|
|
|
- cargo clippy -- -D warnings
|
2024-05-06 23:53:03 +02:00
|
|
|
|
2024-05-23 19:14:15 +02:00
|
|
|
cargo:doc:
|
|
|
|
stage: doc
|
|
|
|
rules:
|
2024-05-23 20:34:28 +02:00
|
|
|
- if: $DOC == 'true'
|
|
|
|
when: always
|
2024-05-23 19:14:15 +02:00
|
|
|
- if: $DOC == 'false'
|
|
|
|
when: never
|
|
|
|
- if: $CI_COMMIT_BRANCH == 'develop'
|
|
|
|
changes:
|
|
|
|
paths:
|
|
|
|
- packages/backend-rs/**/*
|
|
|
|
- packages/macro-rs/**/*
|
|
|
|
- Cargo.toml
|
|
|
|
- Cargo.lock
|
|
|
|
- package.json
|
|
|
|
when: always
|
|
|
|
services: []
|
|
|
|
before_script:
|
2024-08-03 05:03:25 +02:00
|
|
|
- apt-get update && apt-get install -y --no-install-recommends build-essential clang mold nodejs npm
|
2024-05-23 19:14:15 +02:00
|
|
|
- cp ci/cargo/config.toml /usr/local/cargo/config.toml
|
|
|
|
script:
|
2024-05-28 18:10:44 +02:00
|
|
|
- cargo doc --document-private-items
|
2024-06-11 18:49:22 +02:00
|
|
|
- printf 'window.ALL_CRATES = ["backend_rs", "macros", "macros_impl"];' > target/doc/crates.js
|
2024-05-24 14:14:57 +02:00
|
|
|
- printf '<meta http-equiv="refresh" content="0; url=%s">' 'backend_rs' > target/doc/index.html
|
|
|
|
- cd target/doc
|
2024-05-27 19:36:42 +02:00
|
|
|
- npx --yes netlify-cli deploy --prod --site="${CARGO_DOC_SITE_ID}" --dir=.
|
2024-05-23 19:14:15 +02:00
|
|
|
|
2024-07-05 19:16:31 +02:00
|
|
|
cargo:test:miri:
|
|
|
|
stage: test
|
|
|
|
rules:
|
|
|
|
- if: $MIRI
|
|
|
|
script:
|
|
|
|
- export RUST_BACKTRACE=1
|
2024-07-05 20:24:52 +02:00
|
|
|
- export CARGO_TARGET_DIR='ci/target-miri'
|
|
|
|
- export MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
|
2024-07-05 19:16:31 +02:00
|
|
|
- curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C /usr/local/cargo/bin
|
2024-07-05 20:24:52 +02:00
|
|
|
- rustup set profile minimal
|
|
|
|
- rustup override set "${MIRI_NIGHTLY}"
|
2024-07-05 19:16:31 +02:00
|
|
|
- rustup component add miri
|
|
|
|
- MIRIFLAGS='-Zmiri-disable-isolation' cargo miri nextest run -j$(nproc --all)
|
|
|
|
|
2024-05-06 23:53:03 +02:00
|
|
|
renovate:
|
|
|
|
stage: dependency
|
|
|
|
image:
|
|
|
|
name: docker.io/renovate/renovate:37-slim
|
|
|
|
entrypoint: [""]
|
|
|
|
rules:
|
|
|
|
- if: $RENOVATE && $CI_PIPELINE_SOURCE == 'schedule'
|
|
|
|
services: []
|
|
|
|
before_script: []
|
|
|
|
script:
|
|
|
|
- renovate --platform gitlab --token "${API_TOKEN}" --endpoint "${CI_SERVER_URL}/api/v4" "${CI_PROJECT_PATH}"
|
2024-06-04 23:50:14 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
stage: clean
|
|
|
|
rules:
|
|
|
|
- if: $CLEAN && $CI_PIPELINE_SOURCE == 'schedule'
|
|
|
|
services: []
|
|
|
|
before_script:
|
2024-08-03 05:03:25 +02:00
|
|
|
- apt-get update && apt-get -y --no-install-recommends install curl
|
2024-06-04 23:50:14 +02:00
|
|
|
- curl -fsSL 'https://deb.nodesource.com/setup_18.x' | bash -
|
|
|
|
- apt-get install -y --no-install-recommends nodejs
|
|
|
|
- corepack enable
|
|
|
|
- corepack prepare pnpm@latest --activate
|
|
|
|
- pnpm install --frozen-lockfile
|
|
|
|
script:
|
|
|
|
- pnpm run clean-all
|
2024-07-11 01:35:49 +02:00
|
|
|
|
|
|
|
add-issue-labels:
|
|
|
|
stage: manage
|
|
|
|
rules:
|
2024-07-12 14:38:35 +02:00
|
|
|
- if: $ADD_LABEL && $CI_PIPELINE_SOURCE == 'schedule'
|
|
|
|
image: registry.firefish.dev/firefish/gitlab-issue-labels
|
|
|
|
variables:
|
|
|
|
GITLAB_HOST: "firefish.dev"
|
|
|
|
services: []
|
|
|
|
before_script: []
|
|
|
|
script:
|
|
|
|
- gitlab-issue-labels
|
|
|
|
|
|
|
|
close-stalled-issues:
|
|
|
|
stage: manage
|
|
|
|
rules:
|
|
|
|
- if: $CLOSE_STALLED && $CI_PIPELINE_SOURCE == 'schedule'
|
2024-07-11 01:35:49 +02:00
|
|
|
image: registry.firefish.dev/firefish/gitlab-issue-labels
|
|
|
|
variables:
|
|
|
|
GITLAB_HOST: "firefish.dev"
|
|
|
|
services: []
|
|
|
|
before_script: []
|
|
|
|
script:
|
|
|
|
- gitlab-issue-labels
|