daily-briefing/.gitlab-ci.yml
2026-02-13 00:25:22 +01:00

25 lines
456 B
YAML

stages:
- build
- deploy
variables:
DOCKER_IMAGE: "daily-briefing-app"
CONTAINER_NAME: "daily-briefing-running"
build-image:
stage: build
tags:
- shell
script:
- docker build -t $DOCKER_IMAGE .
deploy-container:
stage: deploy
tags:
- shell
script:
- docker stop $CONTAINER_NAME || true
- docker rm $CONTAINER_NAME || true
- docker run -d --name $CONTAINER_NAME -p 8080:8080 $DOCKER_IMAGE
only:
- master