1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-03 08:33:12 +00:00
Lumi/.gitlab-ci.yml

16 lines
No EOL
542 B
YAML

stages:
- build
docker_build:
stage: build
image: docker:latest
services:
- docker:dind
script:
- docker build -t racu .
- source .env # Load environment variables from .env
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- git fetch --tags # Fetch Git tags
- TAG=$(git describe --tags --abbrev=0) # Get the latest Git tag
- docker tag my-python-app $CI_REGISTRY_IMAGE:$TAG # Tag the image with the Git tag
- docker push $CI_REGISTRY_IMAGE:$TAG # Push the tagged image