mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2024-12-23 16:23:02 +03:00
ci: добавил сборку Гномика
This commit is contained in:
parent
a25a97e8f7
commit
53065a3871
@ -14,20 +14,35 @@ lint-pre-commit:
|
|||||||
- .cache/pip
|
- .cache/pip
|
||||||
- .cache/pre-commit
|
- .cache/pre-commit
|
||||||
|
|
||||||
|
.docker-dev-build-template:
|
||||||
|
before_script:
|
||||||
|
- docker info
|
||||||
|
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
|
||||||
|
scripts:
|
||||||
|
- |
|
||||||
|
cd ./src/${KARKAS_PROJECT}
|
||||||
|
export IMAGE_COMMIT=${IMAGE_NAME}:${CI_COMMIT_SHA}
|
||||||
|
export IMAGE_BRANCH=${IMAGE_NAME}:$(echo $CI_COMMIT_REF_NAME | sed 's/[^a-zA-Z0-9]/-/g')
|
||||||
|
docker build -t ${IMAGE_COMMIT} -t ${IMAGE_BRANCH} -f Dockerfile ../..
|
||||||
|
docker push ${IMAGE_COMMIT}
|
||||||
|
docker push ${IMAGE_BRANCH}
|
||||||
|
|
||||||
|
|
||||||
build-altlinux:
|
build-altlinux:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker:27.1.2
|
image: docker:27.1.2
|
||||||
variables:
|
variables:
|
||||||
CI_REGISTRY: registry.gitflic.ru
|
CI_REGISTRY: registry.gitflic.ru
|
||||||
IMAGE_NAME: registry.gitflic.ru/project/alt-gnome/karkas/altlinux
|
IMAGE_NAME: registry.gitflic.ru/project/alt-gnome/karkas/altlinux
|
||||||
before_script:
|
KARKAS_PROJECT: altlinux
|
||||||
- docker info
|
extends: .docker-dev-build-template
|
||||||
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
|
|
||||||
scripts:
|
|
||||||
- |
|
build-gnomik:
|
||||||
cd ./src/altlinux
|
stage: build
|
||||||
export IMAGE_COMMIT=${IMAGE_NAME}:${CI_COMMIT_SHA}
|
image: docker:27.1.2
|
||||||
export IMAGE_BRANCH=${IMAGE_NAME}:$(echo $CI_COMMIT_REF_NAME | sed 's/[^a-zA-Z0-9]/-/g')
|
variables:
|
||||||
docker build -t ${IMAGE_COMMIT} -t ${IMAGE_BRANCH} -f Dockerfile ../..
|
CI_REGISTRY: registry.gitflic.ru
|
||||||
docker push ${IMAGE_COMMIT}
|
IMAGE_NAME: registry.gitflic.ru/project/alt-gnome/karkas/gnomik
|
||||||
docker push ${IMAGE_BRANCH}
|
KARKAS_PROJECT: gnomik
|
||||||
|
extends: .docker-dev-build-template
|
||||||
|
Loading…
Reference in New Issue
Block a user