Commit 0296b59c authored by Maksimelyan Tamashevich (EPAM)'s avatar Maksimelyan Tamashevich (EPAM)
Browse files

Change ci-cd branch

parent 76d64ddb
Pipeline #59338 passed with stages
in 47 minutes and 50 seconds
......@@ -51,6 +51,7 @@ include:
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/osdu-gcp-stateful-k8s.yml"
ref: "GONRG-2850_Migrate_and_Refactor_Wellbore_service_to_the_common_gke_pipeline"
# - project: "osdu/platform/ci-cd-pipelines"
# file: "osdu-gcp-gke.yml"
......@@ -67,6 +68,35 @@ include:
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/aws-python.yml"
# containerize:
# extends: .skipForTriggeringMergeRequests
# stage: containerize
# image: docker:19.03
# tags: ["osdu-medium"]
# variables:
# IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
# script:
# - echo ---- ---- ---- SYSTEM DEPENDENCIES ---- ---- ----
# - apk update
# - apk add git
# - echo ---- ---- ---- BUILD IMAGE ---- ---- ----
# - commit_id=$(git log -n 1 --pretty="%h")
# - echo ---- ---- TAG NAME
# - tag_name="_gitlab_$commit_id"
# - echo $tag_name
# - echo ---- ---- DATE
# - current_utc_date=`date --utc`
# - echo $current_utc_date
# - echo ---- ---- COMMIT BRANCH
# - commit_branch=$commit_id
# - echo $commit_branch
# - echo ---- ---- BUILD IMAGE
# - docker build -t $IMAGE_TAG -t=$CI_REGISTRY_IMAGE:latest --rm . -f ./build/Dockerfile --build-arg PIP_WHEEL_DIR=python-packages --build-arg build_date="$current_utc_date" --build-arg build_number=$commit_id --build-arg commit_id=$commit_id --build-arg build_origin="Gitlab" --build-arg commit_branch=$commit_branch
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# - echo ---- ---- PUSH IMAGE
# - docker push $IMAGE_TAG
# - docker push $CI_REGISTRY_IMAGE:latest
osdu-gcp-containerize:
stage: containerize
needs: ["compile-and-unit-test"]
......@@ -76,7 +106,7 @@ osdu-gcp-containerize:
variables:
OSDU_GCP_LOCAL_IMAGE_TAG_SHA: $CI_REGISTRY_IMAGE/osdu-gcp:$CI_COMMIT_SHORT_SHA
script:
- export EXTRA_DOCKER_TAG=""; if [ "$CI_COMMIT_TAG" != "" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp:$CI_COMMIT_TAG" ; elif [ "$CI_COMMIT_REF_NAME" = "GONRG-2850_Migrate_and_Refactor_Wellbore_service_to_the_common_gke_pipeline" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp:latest" ; fi
- export EXTRA_DOCKER_TAG=""; if [ "$CI_COMMIT_TAG" != "" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp:$CI_COMMIT_TAG" ; elif [ "$CI_COMMIT_REF_NAME" = "trusted-GONRG-2850_Migrate_and_Refactor_Wellbore_service_to_the_common_gke_pipeline" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp:latest" ; fi
- echo ---- ---- ---- SYSTEM DEPENDENCIES ---- ---- ----
- apk update
- apk add git
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment