forked from brefphp/bref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (55 loc) · 2.21 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.EXPORT_ALL_VARIABLES:
# Build the PHP runtimes
runtimes:
cd runtime ; make publish
# Build all docker images
docker-images:
cd runtime ; make docker-images
# Publish doocker images
publish-docker-images: docker-images
# Make sure we have defined the docker tag
(test $(DOCKER_TAG)) && echo "Tagging images with \"${DOCKER_TAG}\"" || echo "You have to define environemnt variable DOCKER_TAG"
test $(DOCKER_TAG)
for image in \
"bref/php-73" "bref/php-73-fpm" "bref/php-73-fpm-dev" \
"bref/php-74" "bref/php-74-fpm" "bref/php-74-fpm-dev" \
"bref/php-80" "bref/php-80-fpm" "bref/php-80-fpm-dev" \
"bref/build-php-73" \
"bref/build-php-74" \
"bref/build-php-80" \
"bref/fpm-dev-gateway"; \
do \
docker tag $$image:latest $$image:${DOCKER_TAG} ; \
docker push $$image ; \
done
# Generate and deploy the production version of the website using http://couscous.io
website:
# See http://couscous.io/
couscous generate
netlify deploy --prod --dir=.couscous/generated
website-staging:
couscous generate
netlify deploy --dir=.couscous/generated
# Run a local preview of the website using http://couscous.io
website-preview:
couscous preview
website-assets: website/template/output.css
website/template/output.css: website/node_modules website/template/styles.css website/tailwind.config.js
cd website && npx tailwind build template/styles.css -o template/output.css
website/node_modules: website/package.json website/package-lock.json
cd website && npm install
# Deploy the demo functions
demo:
serverless deploy
layers.json:
php runtime/layers/layer-list.php
test-stack:
serverless deploy -c tests/serverless.tests.yml
changelog:
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator --user brefphp --project bref --output= --unreleased-only --token=$$GITHUB_TOKEN_READ --no-issues --usernames-as-github-logins --no-verbose
# http://amazon-linux-2-packages.bref.sh/
amazonlinux-package-list:
docker run --rm -it amazonlinux:2 yum list --quiet --color=never > index.html
aws s3 cp index.html s3://amazon-linux-2-packages.bref.sh/ --content-type=text/plain
rm index.html
.PHONY: runtimes website website-preview website-assets demo layers.json test-stack changelog