You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given this example (below), I find myself having to set shell over and over for each cmd. In my current project I have this for each cmd which is 15 times (and growing). It would be a nice QoL to be able to set some kind of top level default configuration to keep my task actions a lil drier. Maybe this could apply to other features like maxRetries, maxTotalSeconds, mute. Additionally the defaults need to be overridable at each individual action.
actions:
- task: check-envwith:
env: ${ENV}
- description: "Check if bootstrap for '$env' is clean"cmd: | set -exo pipefail # check if ./iac/env/${INPUT_ENV}/backends/bootstrap-backend.tfconfig exists if [ -f ./iac/env/${INPUT_ENV}/backends/bootstrap-backend.tfconfig ]; then echo "terraform s3 backend environment files for ${INPUT_ENV} already exists" exit 1 fishell:
linux: bashdarwin: bash
- description: "Init the bootstrap module"task: terraform-initwith:
root_module: bootstrap
- description: "Apply the bootstrap module in the specified environment"task: terraform-applywith:
env: ${ENV}root_module: bootstrapvar_files: '["common.terraform.tfvars", "bootstrap.terraform.tfvars"]'
- description: "Migrate local backend to s3"cmd: | set -exo pipefail cd ./iac/bootstrap terraform init --reconfigure --force-copy --backend-config=../env/${INPUT_ENV}/backends/bootstrap-backend.tfconfig && \ mv terraform.tfstate "terraform-tfstate.${INPUT_ENV}-local-backend-backup"shell:
linux: bashdarwin: bash
thx
The text was updated successfully, but these errors were encountered:
Given this example (below), I find myself having to set
shell
over and over for eachcmd
. In my current project I have this for eachcmd
which is 15 times (and growing). It would be a nice QoL to be able to set some kind of top leveldefault
configuration to keep my task actions a lil drier. Maybe this could apply to other features likemaxRetries, maxTotalSeconds, mute
. Additionally the defaults need to be overridable at each individual action.thx
The text was updated successfully, but these errors were encountered: