Commit ea97ad40 authored by Mykola Zamkovyi (EPAM)'s avatar Mykola Zamkovyi (EPAM)
Browse files

GONRG-1894 wb fix namespace and values

parent 006c428a
...@@ -20,6 +20,7 @@ variables: ...@@ -20,6 +20,7 @@ variables:
OSDU_GCP_HELM_DEPLOYMENT_DIR: devops/gcp OSDU_GCP_HELM_DEPLOYMENT_DIR: devops/gcp
OSDU_GCP_APPLICATION_HEALTH_URL: https://wddms.osdu-gcp.go3-nrg.projects.epam.com/api/os-wellbore-ddms/healthz OSDU_GCP_APPLICATION_HEALTH_URL: https://wddms.osdu-gcp.go3-nrg.projects.epam.com/api/os-wellbore-ddms/healthz
OSDU_GCP_HELM_CHART: wellbore OSDU_GCP_HELM_CHART: wellbore
OSDU_GCP_ENV_HELM_EXTRA_VARS: --set env.USERNAME="app-username" --set env.PASSWORD="28sin47dsk9ik"
AZURE_SERVICE: wellbore-ddms AZURE_SERVICE: wellbore-ddms
AZURE_DOCKER_SUBDIR: build/Dockerfile AZURE_DOCKER_SUBDIR: build/Dockerfile
...@@ -46,6 +47,7 @@ include: ...@@ -46,6 +47,7 @@ include:
file: "scanners/gitlab-ultimate.yml" file: "scanners/gitlab-ultimate.yml"
- project: 'osdu/platform/ci-cd-pipelines' - project: 'osdu/platform/ci-cd-pipelines'
ref: "GONRG-2066_release_common_pipe_k8s"
file: 'cloud-providers/osdu-gcp-stateful-k8s.yml' file: 'cloud-providers/osdu-gcp-stateful-k8s.yml'
- project: 'osdu/platform/ci-cd-pipelines' - project: 'osdu/platform/ci-cd-pipelines'
...@@ -58,49 +60,49 @@ include: ...@@ -58,49 +60,49 @@ include:
# -------------------------------------------------------------------------------- # --------------------------------------------------------------------------------
containerize: #containerize:
extends: # extends:
- .skipForTriggeringMergeRequests # - .skipForTriggeringMergeRequests
#
stage: containerize # stage: containerize
image: docker:19.03 # image: docker:19.03
tags: ['osdu-medium'] # tags: ['osdu-medium']
variables: # variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA # IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
script: # script:
- echo ---- ---- ---- SYSTEM DEPENDENCIES ---- ---- ---- # - echo ---- ---- ---- SYSTEM DEPENDENCIES ---- ---- ----
- apk update # - apk update
- apk add git # - apk add git
- echo ---- ---- ---- BUILD IMAGE ---- ---- ---- # - echo ---- ---- ---- BUILD IMAGE ---- ---- ----
- commit_id=$(git log -n 1 --pretty="%h") # - commit_id=$(git log -n 1 --pretty="%h")
- echo ---- ---- TAG NAME # - echo ---- ---- TAG NAME
- tag_name="_gitlab_$commit_id" # - tag_name="_gitlab_$commit_id"
- echo $tag_name # - echo $tag_name
- echo ---- ---- DATE # - echo ---- ---- DATE
- current_utc_date=`date --utc` # - current_utc_date=`date --utc`
- echo $current_utc_date # - echo $current_utc_date
- echo ---- ---- COMMIT BRANCH # - echo ---- ---- COMMIT BRANCH
- commit_branch=$commit_id # - commit_branch=$commit_id
- echo $commit_branch # - echo $commit_branch
- echo ---- ---- BUILD IMAGE # - 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 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 # - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- echo ---- ---- PUSH IMAGE # - echo ---- ---- PUSH IMAGE
- docker push $IMAGE_TAG # - docker push $IMAGE_TAG
- docker push $CI_REGISTRY_IMAGE:latest # - docker push $CI_REGISTRY_IMAGE:latest
#
osdu-gcp-containerize: #osdu-gcp-containerize:
cache: {} # cache: {}
tags: [ 'osdu-medium' ] # tags: [ 'osdu-medium' ]
only: # only:
variables: # variables:
- $OSDU_GCP == 'true' # - $OSDU_GCP == 'true'
script: # script:
- gcloud auth activate-service-account --key-file $OSDU_GCP_DEPLOY_FILE # - gcloud auth activate-service-account --key-file $OSDU_GCP_DEPLOY_FILE
- gcloud config set project $OSDU_GCP_PROJECT # - gcloud config set project $OSDU_GCP_PROJECT
- touch .gcloudignore # - touch .gcloudignore
- docker build -t gcr.io/$OSDU_GCP_PROJECT/$OSDU_GCP_APPLICATION_NAME/$OSDU_GCP_APPLICATION_NAME-$OSDU_GCP_VENDOR:$CI_COMMIT_SHORT_SHA --rm . -f ./build/Dockerfile # - docker build -t gcr.io/$OSDU_GCP_PROJECT/$OSDU_GCP_APPLICATION_NAME/$OSDU_GCP_APPLICATION_NAME-$OSDU_GCP_VENDOR:$CI_COMMIT_SHORT_SHA --rm . -f ./build/Dockerfile
- gcloud docker -- push gcr.io/$OSDU_GCP_PROJECT/$OSDU_GCP_APPLICATION_NAME/$OSDU_GCP_APPLICATION_NAME-$OSDU_GCP_VENDOR:$CI_COMMIT_SHORT_SHA # - gcloud docker -- push gcr.io/$OSDU_GCP_PROJECT/$OSDU_GCP_APPLICATION_NAME/$OSDU_GCP_APPLICATION_NAME-$OSDU_GCP_VENDOR:$CI_COMMIT_SHORT_SHA
osdu-gcp-test-python: osdu-gcp-test-python:
osdu-gcp-test-python: osdu-gcp-test-python:
......
Supports Markdown
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