-
Notifications
You must be signed in to change notification settings - Fork 0
/
.build.yml
58 lines (51 loc) · 1.68 KB
/
.build.yml
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
52
53
54
55
56
57
58
# SPDX-FileCopyrightText: 2024 Dominik Wombacher <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
image: debian/stable
packages:
- lftp
- python3-venv
- pkg-config
- libcairo2-dev
- python3-dev
sources:
- https://git.sr.ht/~wombelix/dominik-wombacher-cc
- https://git.sr.ht/~wombelix/build-helper-scripts
secrets:
- 74f33de4-3f7a-4a5d-98f5-173b8c63f403
- 5b076ab5-1361-4d71-905b-4ff8c836c62c
environment:
GIT_MIRROR_SSH_KEY: ~/.ssh/5b076ab5-1361-4d71-905b-4ff8c836c62c
GIT_MIRROR_GITHUB: [email protected]:wombelix/dominik-wombacher-cc.git
GIT_MIRROR_GITLAB: [email protected]:wombelix/dominik-wombacher-cc.git
GIT_MIRROR_CODEBERG: [email protected]:wombelix/dominik-wombacher-cc.git
tasks:
- mirror: |
cd build-helper-scripts
source git-mirror.sh
cd ..
cd dominik-wombacher-cc
git_mirror "$GIT_MIRROR_SSH_KEY" "$GIT_MIRROR_GITHUB"
git_mirror "$GIT_MIRROR_SSH_KEY" "$GIT_MIRROR_GITLAB"
git_mirror "$GIT_MIRROR_SSH_KEY" "$GIT_MIRROR_CODEBERG"
- setup: |
cd dominik-wombacher-cc
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- build: |
cd dominik-wombacher-cc
source venv/bin/activate
pelican ./content -o ./output -d -s ./publishconf.py
- deploy: |
set +x
source ~/.secret
export LFTP_PASSWORD=${SECRET_PASSWORD}
set -x
cd dominik-wombacher-cc
lftp --env-password sftp://${SECRET_USER}@${SECRET_SERVER} -e "set sftp:auto-confirm yes; mirror --delete --ignore-time -v -R ./output . ; exit"
triggers:
- action: email
condition: failure