From 723a626cd699aec531e6930dcdfdd2f8f12de4d7 Mon Sep 17 00:00:00 2001 From: handreas <andreas.hamacher@monash.edu> Date: Wed, 29 Jan 2020 05:30:30 +0000 Subject: [PATCH] still fixing key issues Former-commit-id: 8c850f331f9f8e3fc47ac6a1f0f85c748973f860 --- .gitlab-ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c1c6852e..17d3fd3a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,9 +87,9 @@ ansible_create_cluster_stage: tags: - ansible before_script: - - echo $GC_KEY > gc_key.pem + - echo "$GC_KEY" > gc_key.pem - chmod 400 gc_key.pem - - echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh + - echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh script: - echo "ansible_create_cluster_stage" - bash -x ./CICD/ansible_create_cluster_script.sh @@ -107,9 +107,9 @@ tests: tags: - ansible before_script: - - echo $GC_KEY > gc_key.pem + - echo "$GC_KEY" > gc_key.pem - chmod 400 gc_key.pem - - echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh + - echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh script: - echo "tests stage" - export ANSIBLE_HOST_KEY_CHECKING=False @@ -143,9 +143,9 @@ manual_cluster_spawn: - echo "for this to work you have to provide a variable called manual stackname" - echo I still need to handle os password - echo $MANUAL_STACKNAME - - echo $GC_KEY > gc_key.pem + - echo "$GC_KEY" > gc_key.pem - chmod 400 gc_key.pem - - echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh + - echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh script: - source ./$NECTAR_ALLOCATION-openrc.sh - bash -x ./heat/heatcicdwrapper.sh create $MANUAL_STACKNAME @@ -169,9 +169,9 @@ clean: before_script: - echo "cleanup master" - sleep 30 - - echo $GC_KEY > gc_key.pem + - echo "$GC_KEY" > gc_key.pem - chmod 400 gc_key.pem - - echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh + - echo "$HPCCICD_openrc" > ./$NECTAR_ALLOCATION-openrc.sh script: - source ./$NECTAR_ALLOCATION-openrc.sh - bash -x ./heat/heatcicdwrapper.sh delete_if_exists $STACKNAME -- GitLab