Move defaults into site build block

This commit is contained in:
akp 2025-03-20 20:19:53 +00:00
parent f2161ad20e
commit ba6ca5982a
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755

View file

@ -5,14 +5,6 @@ workflow:
stages:
- build
default:
image: docker
services:
- docker:dind
before_script:
- "echo $CI_REGISTRY_PASSWORD | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin"
- "docker info"
variables:
UV_VERSION: 0.6
PYTHON_VERSION: 3.13
@ -21,8 +13,14 @@ variables:
buildAndPublish:
stage: build
image: docker
services:
- docker:dind
variables:
IMAGE_NAME: "${CI_REGISTRY_IMAGE}"
before_script:
- "echo $CI_REGISTRY_PASSWORD | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin"
- "docker info"
script:
- "docker build . --tag ${IMAGE_NAME}:latest --tag ${IMAGE_NAME}:${CI_COMMIT_SHORT_SHA#'v'}"
- "docker push --all-tags $IMAGE_NAME"