Skip to content

Commit

Permalink
Use gitlab dotenv for creds pass (#45)
Browse files Browse the repository at this point in the history
* Update gitlab-ci jinja template to use dotenv report artifact and dependencies keywork to pass credentials between jobs

* add dependencies to needs

* Add aws-creds as job dependency for apply_all job

* Update needs to match dependencies

* Add gitlab ci pipeline for testing

* Fix typo in pipeline code

* Uncommit gitlab pipeline

* Change gitlabi place

---------

Co-authored-by: Eddy PEPY <eddy.pepy.ext@orange.com>
  • Loading branch information
2 people authored and fabgaubert committed Jan 5, 2024
1 parent d5d0150 commit dd07766
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions automation/jinja2/templates/.gitlab-ci.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ variables:
options:
- BUILD
- DESTROY
description: When set to DESTROY plan and delete
description: When set to DESTROY plan and delete
BUILD_TYPE:
value: CHANGES
options:
Expand Down Expand Up @@ -37,7 +37,7 @@ variables:
TF_VAR_backend_bucket_access_role: "arn:aws:iam::{{ environ('ACCOUNT_ID') }}:role/{{ environ('CICD_ROLE_NAME') }}"
{% if CUSTOM_BACKEND_BUCKET_KEY is sameas false %}
CUSTOM_BACKEND_BUCKET_KEY: auto
{% endif %}
{% endif %}
PLAN_BINARY_FILE: {{ environ('PLAN_BINARY_FILE') }}
PLAN_JSON_FILE: {{ environ('PLAN_JSON_FILE') }}
ACCOUNT_ID: {{ environ('ACCOUNT_ID') }}
Expand Down Expand Up @@ -389,7 +389,7 @@ driftctl:
.validate_job: &validate_job
extends: .terraform-base
stage: quality-checks
needs:
needs:
- aws-creds
- terraform-prepare
dependencies:
Expand Down

0 comments on commit dd07766

Please sign in to comment.