Move defaults into site build block
This commit is contained in:
parent
f2161ad20e
commit
ba6ca5982a
1 changed files with 6 additions and 8 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue