forked from nh13/nf-tower-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (34 loc) · 862 Bytes
/
Makefile
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
IMAGE = seqera-docs
REPO = cr.seqera.io/public/$(IMAGE):1.1
docker-image:
docker buildx build \
--push \
--platform linux/amd64 \
--tag $(REPO) \
--build-arg GITEA_TOKEN=${GITEA_TOKEN} \
.
build:
docker run --rm -p 8000:8000 -v ${PWD}:/docs $(REPO) build
serve:
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs $(REPO) serve --dev-addr=0.0.0.0:8000
clean:
rm -rf site
publish:
aws s3 sync public s3://help.tower.nf/ \
--cache-control max-age=2592000 \
--metadata-directive REPLACE \
--storage-class STANDARD \
--delete \
--acl public-read
dry-pub:
aws s3 sync public s3://help.tower.nf/ \
--dryrun \
--cache-control max-age=2592000 \
--metadata-directive REPLACE \
--storage-class STANDARD \
--delete \
--acl public-read
invalidate:
aws cloudfront create-invalidation \
--distribution-id EE450FY2UY75L \
--paths '/*'