mirror of
https://gitlab.dit.htwk-leipzig.de/fsr-im/tools/flatscraper.git
synced 2025-07-15 19:18:49 +02:00
20 lines
430 B
YAML
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 |