Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scaleway instances template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
systemes-dinformation
alpha
pocs
Cloud Machinist
cloud machinist templates
scaleway instances template
Commits
3bd5c302
Commit
3bd5c302
authored
1 year ago
by
Nathan Rodet
Browse files
Options
Downloads
Patches
Plain Diff
update
parent
3a1e60d9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#79029
failed
1 year ago
Stage: prepare
Stage: build
Stage: deploy
Stage: destroy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+2
-3
2 additions, 3 deletions
.gitlab-ci.yml
with
2 additions
and
3 deletions
.gitlab-ci.yml
+
2
−
3
View file @
3bd5c302
...
...
@@ -12,13 +12,14 @@ variables:
TF_CACHE_KEY
:
default
before_script
:
-
ssh-keygen -b 2048 -t rsa -C "${ENVIRONMENT}-cma-update-tmp" -f ${SSH_KEY_PATH} -q -N ""
-
cd ${TF_ROOT}
-
export TF_VAR_SCW_ACCESS_KEY=${TF_VAR_SCW_ACCESS_KEY}
-
export TF_VAR_SCW_SECRET_KEY=${TF_VAR_SCW_SECRET_KEY}
-
export TF_VAR_SCW_PROJECT_ID=${TF_VAR_SCW_PROJECT_ID}
-
export TF_VAR_ENVIRONMENT=${ENVIRONMENT}
-
export TF_VAR_INSTANCE_COUNT=${TF_VAR_INSTANCE_COUNT}
#
- export TF_VAR_SSH_PUBLIC_KEY=
SET AFTER
SSH
KEY
CREATION
-
export TF_VAR_SSH_PUBLIC_KEY=
$(cat ${
SSH
_
KEY
_PATH}.pub)
stages
:
-
prepare
...
...
@@ -30,8 +31,6 @@ stages:
sshkey
:
stage
:
prepare
script
:
-
ssh-keygen -b 2048 -t rsa -C "${ENVIRONMENT}-cma-update-tmp" -f ${SSH_KEY_PATH} -q -N ""
-
export TF_VAR_SSH_PUBLIC_KEY=$(cat ${SSH_KEY_PATH}.pub)
-
echo ${TF_VAR_SSH_PUBLIC_KEY}
ansible-hosts-file
:
...
...
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