Skip to content

Commit

Permalink
[#112]: replace needs with dependencies to stop breaking stage execut…
Browse files Browse the repository at this point in the history
…ion order (#113)

Co-authored-by: Eddy PEPY <[email protected]>
  • Loading branch information
arongate and Eddy PEPY authored Sep 23, 2024
1 parent de4426d commit e12aa0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions automation/jinja2/templates/.env.dist.j2
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ DEFAULT_TERRASCAN_CONFIG={{ terrascan_config | default(".config/.terrascan_confi
DEFAULT_TERRAFORM_DOCS_CONFIG={{ terraform_docs_config | default(".config/.terraform-docs.yml", true) }}

# List the folder for each Terraform Plan to install, respect the order of installation
PLAN_INSTALL_LIST={{ plans | join(',') }}
PLAN_INSTALL_LIST={{ plans | map(attribute="name") | join(',') }}

# List the folder for each Terraform Plan to uninstall, respect the order of uninstallation
PLAN_DELETE_LIST={{ plans | reverse | join(',') }}
PLAN_DELETE_LIST={{ plans | map(attribute="name") | reverse | join(',') }}

# AWS Account ID in which your plan are deployed and containing the backend bucket
ACCOUNT_ID={{ ACCOUNT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion automation/jinja2/templates/.gitlab-ci.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ init_{{ plan_slug }}:
plan_{{ plan_slug }}:
extends: .plan_job
stage: {{ stage_name }}
needs:
dependencies:
{% if GITLAB_JOBS["aws-creds"] %}
- aws-creds
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion configure.yaml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ plans:
# - name: terraform/demo2
# # (optional) Add Gitlab Plan artifacts
# additional_gitlab_plan_artifacts:
# - builds
# - builds
# # (optional) layer specific init parameters replacement
# override_init_parameters: ""
# # (optional) layer specific 'plan' parameters replacement
Expand Down

0 comments on commit e12aa0c

Please sign in to comment.