Skip to content
Snippets Groups Projects
Verified Commit 4fd3ccf1 authored by Konrad Botor's avatar Konrad Botor
Browse files

Added example jobs - ref. hive#406

parent fa5530f8
No related branches found
No related tags found
1 merge request!1Custom docker containers containing required bash scripts
Pipeline #57182 passed with warnings
stages: stages:
- validation - validation
- build - build
- example-build
- example-cleanup
include: include:
- template: Workflows/Branch-Pipelines.gitlab-ci.yml - template: Workflows/Branch-Pipelines.gitlab-ci.yml
...@@ -74,7 +76,7 @@ lint_python_scripts: ...@@ -74,7 +76,7 @@ lint_python_scripts:
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'" echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
tag=":latest" tag=":latest"
else else
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" echo "Running on branch '$CI_COMMIT_BRANCH': tag = $CI_COMMIT_REF_SLUG"
tag=":$CI_COMMIT_REF_SLUG" tag=":$CI_COMMIT_REF_SLUG"
fi fi
- | - |
...@@ -98,4 +100,64 @@ build_docker_builder_image: ...@@ -98,4 +100,64 @@ build_docker_builder_image:
build_image_remover_image: build_image_remover_image:
extends: .build_docker_image extends: .build_docker_image
variables: variables:
BUILD_TARGET: "image-remover" BUILD_TARGET: "image-remover"
\ No newline at end of file
prepare_example_hived_data_5m_image:
extends: .prepare_hived_data_5m_image
stage: example-build
image: registry.gitlab.syncad.com/hive/common-ci-configuration/docker-builder:$CI_COMMIT_SHA
variables:
REGISTRY_USER: "$CI_REGISTRY_USER"
REGISTRY_PASS: "$CI_REGISTRY_PASSWORD"
REGISTRY_URL: "registry.gitlab.syncad.com/hive/common-ci-configuration/hive/"
before_script:
- git clone $REPOSITORY_URL
after_script:
- cat docker_image_name.env
when: manual
tags:
- public-runner-docker
prepare_example_haf_data_5m_image:
extends: .prepare_haf_data_5m_image
stage: example-build
image: registry.gitlab.syncad.com/hive/common-ci-configuration/docker-builder:$CI_COMMIT_SHA
variables:
REGISTRY_USER: "$CI_REGISTRY_USER"
REGISTRY_PASS: "$CI_REGISTRY_PASSWORD"
REGISTRY_URL: "registry.gitlab.syncad.com/hive/common-ci-configuration/haf/"
before_script:
- git clone $REPOSITORY_URL
after_script:
- cat docker_image_name.env
when: manual
tags:
- public-runner-docker
example_hived_data_image_cleanup:
extends: .docker_image_cleanup_job
stage: example-cleanup
image: registry.gitlab.syncad.com/hive/common-ci-configuration/image-remover:$CI_COMMIT_SHA
variables:
REGISTRY_PASS: "$REGISTRY_PASS"
IMAGE_PATH: $HIVED_IMAGE_NAME_REGISTRY_PATH
IMAGE_TAG: $HIVED_IMAGE_NAME_REGISTRY_TAG
needs:
- prepare_example_hived_data_5m_image
when: manual
tags:
- public-runner-docker
example_haf_data_image_cleanup:
extends: .docker_image_cleanup_job
stage: example-cleanup
image: registry.gitlab.syncad.com/hive/common-ci-configuration/image-remover:$CI_COMMIT_SHA
variables:
REGISTRY_PASS: "$REGISTRY_PASS"
IMAGE_PATH: $HAF_IMAGE_NAME_REGISTRY_PATH
IMAGE_TAG: $HAF_IMAGE_NAME_REGISTRY_TAG
needs:
- prepare_example_haf_data_5m_image
when: manual
tags:
- public-runner-docker
\ No newline at end of file
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
.prepare_haf_data_5m_image: .prepare_haf_data_5m_image:
extends: .prepare_data_5m_image extends: .prepare_data_5m_image
variables: variables:
DOTENV_NAME: "$HAF_IMAGE_NAME" DOTENV_NAME: "HAF_IMAGE_NAME"
REGISTRY_URL: "registry.gitlab.syncad.com/hive/haf/" REGISTRY_URL: "registry.gitlab.syncad.com/hive/haf/"
REPOSITORY_URL: "https://gitlab.syncad.com/hive/haf.git" REPOSITORY_URL: "https://gitlab.syncad.com/hive/haf.git"
SUBDIRECTORY: "haf" SUBDIRECTORY: "haf"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment