create Docker images only with development version as tag

This commit is contained in:
Thomas Peetz
2025-04-29 14:43:07 +02:00
parent 4c96de27db
commit bbf422cc5d
3 changed files with 6 additions and 9 deletions
+4 -7
View File
@@ -1,18 +1,15 @@
services:
postgres:
image: postgres:16.8
image: postgres
restart: unless-stopped
environment:
- POSTGRES_DB=kontor
- POSTGRES_USER=kontor
- PGUSER=kontor
- PGPASSWORD=kontor
- PGDATABASE=kontor
#- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
- POSTGRES_PASSWORD=kontor
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-q"]
test: ["CMD-SHELL", "pg_isready", "-U", "kontor"]
interval: 1s
timeout: 5s
retries: 10
@@ -46,7 +43,7 @@ services:
volumes:
- mariadb-storage:/var/lib/mysql:rw
kontor:
image: kontor
image: kontor:0.2.0-SNAPSHOT
restart: unless-stopped
networks:
- database
@@ -57,7 +54,7 @@ services:
postgres:
condition: service_healthy
kontor-api:
image: kontor-api
image: kontor-api:0.2.0-SNAPSHOT
restart: unless-stopped
networks:
- database
+1 -1
View File
@@ -7,7 +7,7 @@ test:
DB_HOST=localhost uv run pytest -v --cov --cov-report=term --cov-report=html:coverage-report
docker: clean
docker build --target=production -t kontor-api -t kontor-api:0.1.0-SNAPSHOT .
docker build --target=production -t kontor-api:0.2.0-SNAPSHOT .
dev:
MARIADB_SERVER=localhost uv run fastapi dev src/main.py --port 8008
+1 -1
View File
@@ -156,7 +156,7 @@ bootRun {
task dockerImage(type: Exec) {
dependsOn(bootJar)
commandLine "docker", "build", ".", "-t", "kontor:${project.version}", "-t", "kontor"
commandLine "docker", "build", ".", "-t", "kontor:${project.version}"
}
vaadin {