Docker image version code
This commit is contained in:
parent
4fe3308cb9
commit
5516a7d29e
3 changed files with 7 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -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__
|
||||||
|
|
|
@ -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
3
version_code
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Your app's version code:
|
||||||
|
# (used as a docker image tag)
|
||||||
|
VERSION=1.0.0
|
Loading…
Reference in a new issue