c
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
build
|
||||
build-up
|
||||
*.html
|
||||
*.pdf
|
||||
build.ninja
|
||||
|
Before Width: | Height: | Size: 226 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.0 MiB |
Before Width: | Height: | Size: 209 KiB |
Before Width: | Height: | Size: 748 KiB |
Before Width: | Height: | Size: 801 KiB |
Before Width: | Height: | Size: 791 KiB |
Before Width: | Height: | Size: 282 KiB |
Before Width: | Height: | Size: 735 KiB |
Before Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 92 KiB |
Before Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 117 KiB |
Before Width: | Height: | Size: 11 KiB |
12
config.py
@@ -249,9 +249,19 @@ gen += """
|
||||
build web: phony """+ " ".join(web_targets) +"""
|
||||
"""
|
||||
|
||||
pub_cmd = [
|
||||
"( [ -d build-up ] && cd build-up && git fetch origin && git checkout main && git reset --hard origin/main "
|
||||
"|| git clone https://gitea.vxcc.dev/alexander.nutz/website-build.git build-up )",
|
||||
"cd build-up",
|
||||
"rsync -av --delete --exclude '.git' build/deploy/ ../build-up/",
|
||||
"git add .",
|
||||
"git commit -m up",
|
||||
"git push -u origin main",
|
||||
]
|
||||
|
||||
gen+="""
|
||||
rule pub_cmd
|
||||
command = """ + ("" if recommend_pub else "echo WARN: not optimal website!!! &&") + """rsync -avz build/deploy/* root@195.26.251.204:/srv/http/alex
|
||||
command = """ + ("" if recommend_pub else "echo WARN: not optimal website!!! && ") + " && ".join(pub_cmd) + """
|
||||
pool = console
|
||||
build pub: pub_cmd web
|
||||
"""
|
||||
|