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:
|
steps:
|
||||||
- name: build html website
|
- name: build html website
|
||||||
commands:
|
commands:
|
||||||
- make -j$(nproc) export DESTDIR=/var/www/c3d2
|
- make -j$(nproc) export RSYNC=atomic-rsync DESTDIR=/var/www/c3d2
|
||||||
- name: build gemini website
|
- name: build gemini website
|
||||||
commands:
|
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
|
kind: signature
|
||||||
hmac: 26dc25ba388782d3c07e492c17efa0d12c18cbf793aea366a4137c5ad1fb97cd
|
hmac: 85037fb4e2bd674ea507a06838cc9da4b3d372079e8beac1b8bf558fe07351e0
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -21,7 +21,7 @@ WGET=wget
|
||||||
# rsync
|
# rsync
|
||||||
RSYNC=rsync
|
RSYNC=rsync
|
||||||
# -l, --links copy symlinks as symlinks
|
# -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
|
# Verzeichnis, in das exportiert werden soll
|
||||||
DESTDIR?=www-export
|
DESTDIR?=www-export
|
||||||
|
@ -103,10 +103,12 @@ endef
|
||||||
|
|
||||||
.PHONY: www
|
.PHONY: www
|
||||||
www: $(XML_CATALOG) $(CONTENT)
|
www: $(XML_CATALOG) $(CONTENT)
|
||||||
|
mkdir -p $@
|
||||||
$(RSYNC) $(RSYNC_FLAGS) --exclude=".stamp-*" content/static/ content/old-site/ build/ $@
|
$(RSYNC) $(RSYNC_FLAGS) --exclude=".stamp-*" content/static/ content/old-site/ build/ $@
|
||||||
|
|
||||||
.PHONY: export
|
.PHONY: export
|
||||||
export: www
|
export: www
|
||||||
|
mkdir -p $(DESTDIR)
|
||||||
$(RSYNC) $(RSYNC_FLAGS) --exclude=".git/" www/ $(DESTDIR)/
|
$(RSYNC) $(RSYNC_FLAGS) --exclude=".git/" www/ $(DESTDIR)/
|
||||||
|
|
||||||
$(DATESTAMP):
|
$(DATESTAMP):
|
||||||
|
|
Loading…
Reference in New Issue