ci: add dependencies of sea-orm-cli

This commit is contained in:
naskya 2024-05-06 18:26:50 +09:00
parent e6121946aa
commit 641ff742bb
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -29,7 +29,7 @@ variables:
default: default:
before_script: before_script:
- apk add --update build-base linux-headers curl ca-certificates python3 perl postgresql-client pkgconfig openssl-dev - apk add --update build-base linux-headers curl ca-certificates python3 perl postgresql-client
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- . "${HOME}/.cargo/env" - . "${HOME}/.cargo/env"
- corepack enable - corepack enable
@ -45,9 +45,10 @@ auto_update:
- apk add git - apk add git
- git config user.name 'GitLab CI' - git config user.name 'GitLab CI'
- git config user.email 'noreply@firefish.dev' - git config user.email 'noreply@firefish.dev'
- git remote set-url origin "https://gitlab-ci-token:${CI_JOB_TOKEN}@firefish.dev/${CI_MERGE_REQUEST_SOURCE_PROJECT_PATH}" - git remote set-url origin "https://gitlab-ci-token:${CI_JOB_TOKEN}@firefish.dev/${CI_MERGE_REQUEST_SOURCE_PROJECT_PATH}.git"
- git fetch origin - git fetch origin
- git switch "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}" - git switch "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}"
- git pull --ff
# update pnpm lockfile # update pnpm lockfile
- pnpm install - pnpm install
# commit # commit
@ -67,6 +68,7 @@ auto_update:
git push --push-option=ci.skip origin "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}" git push --push-option=ci.skip origin "${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}"
fi fi
# update packages/backend-rs/src/model/entity # update packages/backend-rs/src/model/entity
- apk install pkgconfig openssl openssl-dev libssl3
- cargo install sea-orm-cli - cargo install sea-orm-cli
- pnpm --filter backend run build:debug - pnpm --filter backend run build:debug
- pnpm run migrate - pnpm run migrate