Docker image version code

This commit is contained in:
DarkCat09 2023-03-01 16:05:20 +04:00
parent 4fe3308cb9
commit 5516a7d29e
3 changed files with 7 additions and 2 deletions

View file

@ -13,7 +13,8 @@ check:
python3 -m pylint app/ python3 -m pylint app/
docker: docker:
docker build -t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE} . python3 -m dotenv -f version_code run \
docker build -t ${REPO_OWNER_LOWER}/${REPO_NAME_SNAKE}:$$VERSION .
clean: clean:
rm -rf app/__pycache__ rm -rf app/__pycache__

View file

@ -32,7 +32,8 @@ corresponding to your database structure
as explained below ([Structure > Database](#database)) as explained below ([Structure > Database](#database))
7. Check if `Makefile`, `Dockerfile`, `docker-compose.yml` are correct 7. Check if `Makefile`, `Dockerfile`, `docker-compose.yml` are correct
8. Run the formatter and linters (`make format`, then `make check`) 8. Run the formatter and linters (`make format`, then `make check`)
9. Build a docker image and [publish](#publishing-app) it 9. Edit the `version_code` file if needed,
build a docker image and [publish](#publishing-app) it
### Makefile ### Makefile
Make commands: Make commands:

3
version_code Normal file
View file

@ -0,0 +1,3 @@
# Your app's version code:
# (used as a docker image tag)
VERSION=1.0.0