Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
7973703c
Commit
7973703c
authored
5 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
still working on key handling
Former-commit-id:
6accae40
parent
7df62138
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-10
20 additions, 10 deletions
.gitlab-ci.yml
with
20 additions
and
10 deletions
.gitlab-ci.yml
+
20
−
10
View file @
7973703c
...
@@ -14,15 +14,6 @@ stages:
...
@@ -14,15 +14,6 @@ stages:
-
tests
-
tests
-
clean
# only on master
-
clean
# only on master
setup
:
stage
:
.pre
tags
:
-
ansible
script
:
-
echo $GC_KEY > gc_key.pem
-
chmod 400 gc_key.pem
-
echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
#trigger_pipeline_in_B:
#trigger_pipeline_in_B:
# stage: integration_test_downstream
# stage: integration_test_downstream
# tags:
# tags:
...
@@ -65,14 +56,19 @@ yamllint:
...
@@ -65,14 +56,19 @@ yamllint:
-
yamllint
-
yamllint
script
:
script
:
-
echo "stage yamllint"
-
echo "stage yamllint"
-
cd CICD
-
ansible-lint -x ANSIBLE0002 master_playbook.yml
-
ansible-lint -x ANSIBLE0002 master_playbook.yml
-
yamllint -c ./
CICD/
.yamllintheat.yaml ./
CICD/
heat
-
yamllint -c ./.yamllintheat.yaml ./heat
build_cluster_cicd
:
build_cluster_cicd
:
stage
:
heat
stage
:
heat
allow_failure
:
false
allow_failure
:
false
tags
:
tags
:
-
heat
-
heat
before_script
:
-
echo $GC_KEY > gc_key.pem
-
chmod 400 gc_key.pem
-
echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
script
:
script
:
-
echo "heat stage"
-
echo "heat stage"
-
source ./$NECTAR_ALLOCATION-openrc.sh
-
source ./$NECTAR_ALLOCATION-openrc.sh
...
@@ -90,6 +86,10 @@ ansible_create_cluster_stage:
...
@@ -90,6 +86,10 @@ ansible_create_cluster_stage:
stage
:
ansible_create_cluster_stage
stage
:
ansible_create_cluster_stage
tags
:
tags
:
-
ansible
-
ansible
before_script
:
-
echo $GC_KEY > gc_key.pem
-
chmod 400 gc_key.pem
-
echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
script
:
script
:
-
echo "ansible_create_cluster_stage"
-
echo "ansible_create_cluster_stage"
-
bash -x ./CICD/ansible_create_cluster_script.sh
-
bash -x ./CICD/ansible_create_cluster_script.sh
...
@@ -106,6 +106,10 @@ tests:
...
@@ -106,6 +106,10 @@ tests:
stage
:
tests
stage
:
tests
tags
:
tags
:
-
ansible
-
ansible
before_script
:
-
echo $GC_KEY > gc_key.pem
-
chmod 400 gc_key.pem
-
echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
script
:
script
:
-
echo "tests stage"
-
echo "tests stage"
-
export ANSIBLE_HOST_KEY_CHECKING=False
-
export ANSIBLE_HOST_KEY_CHECKING=False
...
@@ -139,6 +143,9 @@ manual_cluster_spawn:
...
@@ -139,6 +143,9 @@ manual_cluster_spawn:
-
echo "for this to work you have to provide a variable called manual stackname"
-
echo "for this to work you have to provide a variable called manual stackname"
-
echo I still need to handle os password
-
echo I still need to handle os password
-
echo $MANUAL_STACKNAME
-
echo $MANUAL_STACKNAME
-
echo $GC_KEY > gc_key.pem
-
chmod 400 gc_key.pem
-
echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
script
:
script
:
-
source ./$NECTAR_ALLOCATION-openrc.sh
-
source ./$NECTAR_ALLOCATION-openrc.sh
-
bash -x ./heat/heatcicdwrapper.sh create $MANUAL_STACKNAME
-
bash -x ./heat/heatcicdwrapper.sh create $MANUAL_STACKNAME
...
@@ -162,6 +169,9 @@ clean:
...
@@ -162,6 +169,9 @@ clean:
before_script
:
before_script
:
-
echo "cleanup master"
-
echo "cleanup master"
-
sleep
30
-
sleep
30
-
echo $GC_KEY > gc_key.pem
-
chmod 400 gc_key.pem
-
echo $HPCCICD_openrc > ./$NECTAR_ALLOCATION-openrc.sh
script
:
script
:
-
source ./$NECTAR_ALLOCATION-openrc.sh
-
source ./$NECTAR_ALLOCATION-openrc.sh
-
bash -x ./heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
-
bash -x ./heat/heatcicdwrapper.sh delete_if_exists $STACKNAME
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment