Use atomic-rsync
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Sandro - 2023-07-24 21:08:14 +02:00
parent 448da507de
commit 6c46d3ba24
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 6 additions and 4 deletions

View File

@ -17,12 +17,12 @@ clone:
steps:
- name: build html website
commands:
- make -j$(nproc) export DESTDIR=/var/www/c3d2
- make -j$(nproc) export RSYNC=atomic-rsync DESTDIR=/var/www/c3d2
- name: build gemini website
commands:
- make -f Makefile.gemini -j$(nproc) export DESTDIR=/var/gemini
- make -f Makefile.gemini -j$(nproc) export RSYNC=atomic-rsync DESTDIR=/var/gemini
---
kind: signature
hmac: 26dc25ba388782d3c07e492c17efa0d12c18cbf793aea366a4137c5ad1fb97cd
hmac: 85037fb4e2bd674ea507a06838cc9da4b3d372079e8beac1b8bf558fe07351e0
...

View File

@ -21,7 +21,7 @@ WGET=wget
# rsync
RSYNC=rsync
# -l, --links copy symlinks as symlinks
RSYNC_FLAGS=--links --verbose --recursive --delete --delete-after --delete-excluded --checksum --chmod=ugo=rX
RSYNC_FLAGS=--links --verbose --recursive --delete --delete-after --delete-excluded --checksum --chmod=ugo=rX,u+w
# Verzeichnis, in das exportiert werden soll
DESTDIR?=www-export
@ -103,10 +103,12 @@ endef
.PHONY: www
www: $(XML_CATALOG) $(CONTENT)
mkdir -p $@
$(RSYNC) $(RSYNC_FLAGS) --exclude=".stamp-*" content/static/ content/old-site/ build/ $@
.PHONY: export
export: www
mkdir -p $(DESTDIR)
$(RSYNC) $(RSYNC_FLAGS) --exclude=".git/" www/ $(DESTDIR)/
$(DATESTAMP):