Files
flatscraper/.gitlab-ci.yml
2025-01-13 10:58:00 +01:00

20 lines
430 B
YAML

# Build Python Docker image and save it to GitLab Container Registry
stages:
- build
build:
stage: build
image: docker:latest
services:
- docker:dind
script:
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
only:
- main
- development
- tags
tags:
- docker