Skip to content
Snippets Groups Projects
Commit 268df3fb authored by Dmitriy Rudko's avatar Dmitriy Rudko :speech_balloon:
Browse files

Added deployment step to GCP Community environment

parent 504ec69a
No related branches found
No related tags found
No related merge requests found
Pipeline #4839 canceled
......@@ -16,11 +16,20 @@
image: google/cloud-sdk:alpine
stages:
- unit_tests
- test_dags
- test
- verify
- deploy
unit_tests:
stage: test
image: johnybear/osdu-airflow:python36
script:
- chmod +x tests/unit_tests.sh
- tests/./unit_tests.sh || EXIT_CODE=$?
- exit ${EXIT_CODE}
test_dags:
stage: test_dags
stage: verify
image: johnybear/osdu-airflow:python36
script:
- chmod +x tests/test_dags.sh
......@@ -32,10 +41,8 @@ test_dags:
when: on_failure
expire_in: 1 week
unit_tests:
stage: unit_tests
image: johnybear/osdu-airflow:python36
dags_rsync_community:
stage: deploy
script:
- chmod +x tests/unit_tests.sh
- tests/./unit_tests.sh || EXIT_CODE=$?
- exit ${EXIT_CODE}
\ No newline at end of file
- gcloud auth activate-service-account --key-file $OSDU_GCP_SVC_ACCT
- gsutil -m rsync -x "\.git.*|tests/.*|plugins/tests.*$" -r "$PWD" $OSDU_GCP_DEPL_TARGET
\ No newline at end of file
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