-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
51 lines (49 loc) · 1.37 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
51 lines (49 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Change pip's cache directory to be inside
# the project directory since we can only cache local items.
# https://gitlab.com/gitlab-org/gitlab/-/issues/14151
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
POSTGRES_HOST: postgres
POSTGRES_DB: harmonbot
POSTGRES_USER: harmonbot
POSTGRES_PASSWORD: ""
# GitLab CI creates a separate mountpoint for the build directory,
# so we need to copy instead of using hard links.
# https://docs.astral.sh/uv/guides/integration/gitlab/
UV_LINK_MODE: copy
Discord:
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:3.11.7
services:
- postgres:12.1
cache:
- key:
files:
- uv.lock
paths:
- .cache/pip
- .uv-cache
script:
- pip install --upgrade uv
- uv pip install -r pylock.toml --system
- cd Discord
- python -u Harmonbot.py
- uv cache prune --ci
Telegram:
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image: python:3.11.7
cache:
- key:
files:
- uv.lock
paths:
- .cache/pip
- .uv-cache
script:
- pip install --upgrade uv
- uv pip install -r pylock.toml --system
- cd Telegram
- python Telegram_Harmonbot.py
- uv cache prune --ci