forked from alphagov/security.txt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 636 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 636 Bytes
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
.SHELL := /bin/bash
.DEFAULT_GOAL := build
.PHONY = clean
deploy: build
cf7 push securitytxt --strategy rolling
build: clean
mkdir -p dist/.well-known/
cp security.txt dist/
cp thanks.txt dist/
echo "" >> dist/security.txt
echo -n "Last-Updated: " >> dist/security.txt
date --rfc-3339='seconds' >> dist/security.txt
echo -n "Expires: " >> dist/security.txt
date -d '+3 months' --rfc-3339='seconds' >> dist/security.txt
echo "" >> dist/security.txt
echo "# Generated at: https://github.com/alphagov/security.txt" >> dist/security.txt
cp dist/security.txt dist/.well-known/
cp paas_app/* dist/
clean:
rm -rf dist