ci: implements jenkins deploy

This commit is contained in:
2026-02-21 10:47:21 +01:00
parent 4e72e6da77
commit c32c33f529
4 changed files with 37 additions and 18 deletions

View File

@@ -1,3 +1,4 @@
STACK=pablotj-portfolio
APP_NAME=pablotj-portfolio-api
IMAGE_NAME=$(APP_NAME)
@@ -6,7 +7,7 @@ NAMESPACE=andromeda
TAG?=latest
HOST_PORT=8181
CONTAINER_PORT=80
CONTAINER_PORT=8080
IMAGE_FULL=$(REGISTRY_URL)/$(NAMESPACE)/$(IMAGE_NAME):$(TAG)
@@ -22,6 +23,9 @@ push:
run:
docker run -d \
--name $(APP_NAME) \
--label com.docker.compose.service="$(APP_NAME)" \
--label com.docker.compose.project="$(STACK)" \
--network andromeda \
-p $(HOST_PORT):$(CONTAINER_PORT) \
--env-file .env \
$(IMAGE_FULL)