5 Commits

Author SHA1 Message Date
84c92fe654 Fix version
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-03 22:33:03 +01:00
166dd716ed Remove non-working tag from CI file
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-03 22:06:43 +01:00
6102459637 Set VERSION_NUMBER in Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing
2023-01-03 22:04:46 +01:00
e4cd75d51f Use add.html for add_purchase 2023-01-03 22:04:36 +01:00
b1c8f58855 Add make shell 2023-01-03 22:04:22 +01:00
4 changed files with 8 additions and 6 deletions

View File

@ -8,11 +8,8 @@ steps:
image: plugins/docker image: plugins/docker
settings: settings:
repo: registry.kucharczyk.xyz/timetracker repo: registry.kucharczyk.xyz/timetracker
environment:
VERSION_NUMBER: $(git describe --tags --abbrev=0)
tags: tags:
- latest - latest
- $VERSION_NUMBER
trigger: trigger:
event: event:
- push - push

View File

@ -12,4 +12,5 @@ COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
USER timetracker USER timetracker
EXPOSE 8000 EXPOSE 8000
ENV VERSION_NUMBER 0.1.0-4-g166dd71
ENTRYPOINT [ "/entrypoint.sh" ] ENTRYPOINT [ "/entrypoint.sh" ]

View File

@ -1,4 +1,4 @@
.PHONY: createsuperuser .PHONY: createsuperuser shell
all: css migrate all: css migrate
@ -34,4 +34,7 @@ loadsample:
python src/web/manage.py loaddata sample.yaml python src/web/manage.py loaddata sample.yaml
createsuperuser: createsuperuser:
python src/web/manage.py createsuperuser python src/web/manage.py createsuperuser
shell:
python src/web/manage.py shell

View File

@ -47,7 +47,8 @@ def add_purchase(request):
form.save() form.save()
context["form"] = form context["form"] = form
return render(request, "add_purchase.html", context) context["title"] = "Add New Purchase"
return render(request, "add.html", context)
def add_game(request): def add_game(request):