Add build to azure deploy

This commit is contained in:
Lorenz Padberg 2023-05-25 12:00:29 +02:00 committed by Daniel Egger
parent d29e9c8c8f
commit 32457bcb61
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -287,6 +287,7 @@ git-crypt-encrypted-files-check.txt
/server/vbv_lernwelt/static/css/tailwind.css
/server/vbv_lernwelt/static/vue/
/server/vbv_lernwelt/static/storybook
/server/vbv_lernwelt/templates/vue/index.html
/server/vbv_lernwelt/media
/client/src/gql/minifiedSchema.json

View File

@ -1,6 +1,8 @@
#!/bin/bash
npm install
npm run build
python server/manage.py collectstatic --noinput
docker build --platform linux/amd64 -f compose/django/Dockerfile -t iterativ/vbv-lernwelt-django:azure .
docker image push iterativ/vbv-lernwelt-django:azure