Commit eecdd542 authored by Vladislav Shishko (EPAM)'s avatar Vladislav Shishko (EPAM) Committed by Oleksandr Kosse (EPAM)
Browse files

(GONRG-2758) containerize wks bootstrap step

parent 7a353fd0
FROM google/cloud-sdk:slim
COPY ./devops/gcp/bootstrap.sh /opt
COPY ./deployments /opt/
RUN pip3 install -r /opt/scripts/gcp/requirements.txt
RUN chmod 775 /opt/bootstrap.sh
CMD ["/bin/bash", "-c", "source /opt/bootstrap.sh"]
#!/bin/bash
set -ex
python3 /opt/scripts/gcp/deploy_mappings.py
python3 /opt/scripts/gcp/deploy_mapping_info_records.py
......@@ -25,3 +25,22 @@ osdu-gcp-test:
only:
variables:
- $OSDU_GCP == 'true'
osdu-gcp-containerize-bootstrap-gitlab:
stage: containerize
image: docker:19.03.15
tags: ["osdu-medium"]
services:
- docker:20.10.7-dind
script:
- export EXTRA_DOCKER_TAG=""; if [ "$CI_COMMIT_TAG" != "" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp-bootstrap:$CI_COMMIT_TAG" ; elif [ "$CI_COMMIT_REF_NAME" = "master" ] ; then EXTRA_DOCKER_TAG="-t $CI_REGISTRY_IMAGE/osdu-gcp-bootstrap:latest" ; fi
- docker build -t $CI_REGISTRY_IMAGE/osdu-gcp-bootstrap:$CI_COMMIT_SHORT_SHA $EXTRA_DOCKER_TAG --file devops/$OSDU_GCP_VENDOR/Dockerfile .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE/osdu-gcp-bootstrap
only:
refs:
- master
- /.*bootstrap.*/
- tags
variables:
- $OSDU_GCP == 'true'
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