Use atomic-rsync
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
448da507de
commit
6c46d3ba24
|
@ -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
|
||||
|
||||
...
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue