Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Seismic DMS Suite
seismic-dms-cpp-lib
Commits
75045b56
Commit
75045b56
authored
Jun 03, 2021
by
Daniel Perez
Browse files
Adding ibm and aws to ci cd deploy step
parent
3ab673b2
Pipeline
#44450
passed with stages
in 10 minutes and 10 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
75045b56
...
...
@@ -51,7 +51,35 @@ compile-and-unit-test-azure-curl:
name
:
$(basename sdapi-*)-linux64
paths
:
-
sdapi-*/
compile-and-unit-test-aws
:
stage
:
build
image
:
$CI_REGISTRY_IMAGE/sdapi-osdu-ubuntu-static-deps
before_script
:
-
git submodule update --init --recursive
script
:
-
./devops/scripts/build-linux64.sh --build-mode=Release --aws-provider --build-utest
-
./devops/scripts/run_unit_tests.sh --program=$(pwd)/build/test/utest/utest
-
cp -r dist/Release/sdapi-* $(pwd)
artifacts
:
name
:
$(basename sdapi-*)-linux64
paths
:
-
sdapi-*/
compile-and-unit-test-ibm
:
stage
:
build
image
:
$CI_REGISTRY_IMAGE/sdapi-osdu-ubuntu-static-deps
before_script
:
-
git submodule update --init --recursive
script
:
-
./devops/scripts/build-linux64.sh --build-mode=Release --ibm-provider --build-utest
-
./devops/scripts/run_unit_tests.sh --program=$(pwd)/build/test/utest/utest
-
cp -r dist/Release/sdapi-* $(pwd)
artifacts
:
name
:
$(basename sdapi-*)-linux64
paths
:
-
sdapi-*/
azure_gen_token_test
:
tags
:
[
"
osdu-small"
]
image
:
node
...
...
@@ -90,9 +118,7 @@ osdu-package-polycloud:
-
PACKAGE_VERSION=$(./devops/scripts/gen_version.sh)
-
tar --directory=sdapi-$PACKAGE_VERSION -cf - . | gzip > sdapi-polycloud.tar.gz
-
'
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN"
--upload-file
sdapi-polycloud.tar.gz
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/sdapi/$PACKAGE_VERSION/sdapi-polycloud.tar.gz"'
only
:
refs
:
-
master
osdu-package-azure
:
stage
:
deploy
...
...
@@ -109,9 +135,7 @@ osdu-package-azure:
-
PACKAGE_VERSION=$(./devops/scripts/gen_version.sh)
-
tar --directory=sdapi-$PACKAGE_VERSION -cf - . | gzip > sdapi-azure.tar.gz
-
'
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN"
--upload-file
sdapi-azure.tar.gz
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/sdapi/$PACKAGE_VERSION/sdapi-azure.tar.gz"'
only
:
refs
:
-
master
osdu-package-azure-curl
:
stage
:
deploy
...
...
@@ -128,9 +152,41 @@ osdu-package-azure-curl:
-
PACKAGE_VERSION=$(./devops/scripts/gen_version.sh)
-
tar --directory=sdapi-$PACKAGE_VERSION -cf - . | gzip > sdapi-azure-curl.tar.gz
-
'
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN"
--upload-file
sdapi-azure-curl.tar.gz
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/sdapi/$PACKAGE_VERSION/sdapi-azure-curl.tar.gz"'
only
:
refs
:
-
master
osdu-package-aws
:
stage
:
deploy
image
:
ubuntu
dependencies
:
-
compile-and-unit-test-aws
script
:
-
apt-get update
-
apt-get install curl -y
-
apt-get install tar -y
-
apt-get install gzip -y
-
apt-get install git -y
-
chmod +x ./devops/scripts/gen_version.sh
-
PACKAGE_VERSION=$(./devops/scripts/gen_version.sh)
-
tar --directory=sdapi-$PACKAGE_VERSION -cf - . | gzip > sdapi-aws.tar.gz
-
'
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN"
--upload-file
sdapi-aws.tar.gz
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/sdapi/$PACKAGE_VERSION/sdapi-aws.tar.gz"'
osdu-package-ibm
:
stage
:
deploy
image
:
ubuntu
dependencies
:
-
compile-and-unit-test-ibm
script
:
-
apt-get update
-
apt-get install curl -y
-
apt-get install tar -y
-
apt-get install gzip -y
-
apt-get install git -y
-
chmod +x ./devops/scripts/gen_version.sh
-
PACKAGE_VERSION=$(./devops/scripts/gen_version.sh)
-
tar --directory=sdapi-$PACKAGE_VERSION -cf - . | gzip > sdapi-ibm.tar.gz
-
'
curl
--header
"JOB-TOKEN:
$CI_JOB_TOKEN"
--upload-file
sdapi-ibm.tar.gz
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/sdapi/$PACKAGE_VERSION/sdapi-ibm.tar.gz"'
azure_test
:
tags
:
[
"
osdu-medium"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment