Compare commits

2 Commits

Author SHA1 Message Date
3a955a45dc Setup multiplatform Docker builds 2022-07-14 15:53:28 -07:00
ce2a433145 Add Version to Base Template 2022-07-14 15:05:53 -07:00
3 changed files with 9 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM node:lts-alpine AS builder FROM --platform=$BUILDPLATFORM node:lts-alpine AS builder
WORKDIR /app WORKDIR /app
COPY sigl sigl COPY sigl sigl

View File

@@ -24,6 +24,12 @@ db-upgrade :
db-downgrade : db-downgrade :
poetry run flask db downgrade poetry run flask db downgrade
docker :
docker buildx build --platform=linux/amd64,linux/arm64 . -t asymworks/sigl:latest
docker-deploy:
docker buildx build --platform=linux/amd64,linux/arm64 . -t asymworks/sigl:latest --push
lint : lint :
poetry run flake8 poetry run flake8
@@ -48,7 +54,7 @@ test-x :
test-wip : test-wip :
poetry run python -m pytest tests -m wip poetry run python -m pytest tests -m wip
.PHONY : css \ .PHONY : css docker \
db-init db-migrate db-upgrad db-downgrade \ db-init db-migrate db-upgrad db-downgrade \
lint shell serve \ lint shell serve \
requirements.txt requirements-dev.txt \ requirements.txt requirements-dev.txt \

View File

@@ -53,7 +53,7 @@
{% block main %}{% endblock %} {% block main %}{% endblock %}
</main> </main>
<footer class="max-w-3xl mx-auto flex flex-col mt-1 px-2 text-xs text-gray-600"> <footer class="max-w-3xl mx-auto flex flex-col mt-1 px-2 text-xs text-gray-600">
<p>Sigl | Simple Grocery List</p> <p>Sigl | Simple Grocery List | Version {{ config['APP_VERSION'] }}</p>
<p>Copyright &copy;2022 Asymworks, LLC. All Rights Reserved.</p> <p>Copyright &copy;2022 Asymworks, LLC. All Rights Reserved.</p>
</footer> </footer>
{% block body_scripts %}{% endblock %} {% block body_scripts %}{% endblock %}