Skip to content

Commit

Permalink
update installation directory for the providers
Browse files Browse the repository at this point in the history
  • Loading branch information
ADobrodey committed Dec 28, 2023
1 parent 0ebdc8b commit 0e0fec7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
1 change: 0 additions & 1 deletion atlantis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ FROM ghcr.io/next-gen-infrastructure/terraform-ci:latest
RUN \
addgroup atlantis && \
adduser -S atlantis -G atlantis && \
cp -R /root/.terraform.d /home/atlantis/ && \
cp /root/.terraformrc /home/atlantis/

ENV TF_PLUGIN_CACHE_DIR="/usr/share/terraform/providers"
Expand Down
33 changes: 0 additions & 33 deletions atlantis/atlantis-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ repos:
workflow: terragrunt
allowed_workflows:
- terragrunt
# - terragrunt-run-all
delete_source_branch_on_merge: true
repo_locking: false
post_workflow_hooks:
Expand Down Expand Up @@ -83,35 +82,3 @@ workflows:
cp "${HOME}/.terraform.d/terragrunt-core.hcl" "${DIR/\/${REPO_REL_DIR}/}"
terragrunt terragrunt apply -input=false $PLANFILE
fi
# terragrunt-run-all:
# plan:
# steps:
# - run: |
# mkdir -p "/tmp/${BASE_REPO_OWNER}-${BASE_REPO_NAME}-${PULL_NUM}"
# if ! [[ "${BASE_BRANCH_NAME}" == "production" || "${BASE_BRANCH_NAME}" == "develop" ]]; then
# echo "Environment skipped. Please open a Pull Request to production or develop branch to plan and apply infrastructure changes."
# exit 0
# elif [[ "${REPO_REL_DIR}" == *"prod"* ]]; then
# if ! [[ "${BASE_BRANCH_NAME}" == "production" ]]; then
# echo "Environment skipped. Please open a Pull Request to production branch to plan and apply production changes."
# exit 0
# fi
# else
# cp "${HOME}/.terraform.d/terragrunt-core.hcl" "${DIR/\/${REPO_REL_DIR}/}"
# terragrunt run-all plan -out plan.out"
# fi
# apply:
# steps:
# - run: |
# if ! [[ "${BASE_BRANCH_NAME}" == "production" || "${BASE_BRANCH_NAME}" == "develop" ]]; then
# echo "Environment skipped. Please open a Pull Request to production or develop branch to plan and apply infrastructure changes."
# exit 0
# elif [[ "${REPO_REL_DIR}" == *"prod"* ]]; then
# if ! [[ "${BASE_BRANCH_NAME}" == "production" ]]; then
# echo "Environment skipped. Please open a Pull Request to production branch to plan and apply production changes."
# exit 0
# fi
# else
# terragrunt run-all apply plan.out --terragrunt-non-interactive
# fi

0 comments on commit 0e0fec7

Please sign in to comment.