dockerfile: enhanced to match netlify pipeline

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-05-13 21:24:26 +02:00
parent 1e1fdfce1c
commit ebd36f7081
3 changed files with 115 additions and 71 deletions

View File

@@ -19,3 +19,19 @@ buildx-yaml:
rm -rf ./_data/buildx/*
cp -R "$($@_TMP_OUT)"/out/reference/*.yaml ./_data/buildx/
rm -rf $($@_TMP_OUT)/*
# Build website and output to _site folder
release:
rm -rf _site
$(BUILDX_CMD) bake release
# Vendor Gemfile.lock
vendor:
$(BUILDX_CMD) bake vendor
# Deploy website and run it through Docker compose
# Available in your browser at http://localhost:4000
deploy:
docker compose up --build
.PHONY: buildx-yaml release vendor deploy