Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added python install to facilitate building python archives via TF #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/terraform-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ on:
type: boolean
default: false
description: "Download an artifact containing an existing Terraform plan created by a previous run. Incompatible with upload_plan"
python_version:
required: false
type: string
default: "3.12"
description: "The version of python required when building packages via Terraform"

secrets:
AWS_ROLE_NAME:
Expand Down Expand Up @@ -108,6 +113,11 @@ jobs:
ref: ${{ inputs.ref }}
ssh-key: ${{ secrets.REPO_SSH_DEPLOY_KEY }}

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python_version }}

- name: Export variables
run: echo "state_name=$(basename ${{ matrix.stack.directory }})" >> $GITHUB_ENV

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/terraform-plan-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ on:
required: false
type: boolean
default: false
python_version:
required: false
type: string
default: "3.12"
description: "The version of python required when building packages via Terraform"
repo:
required: false
type: string
Expand Down Expand Up @@ -138,6 +143,7 @@ jobs:
execute_terraform_plan: false
upload_plan: true
download_existing_plan: false
python_version: ${{ inputs.python_version }}
secrets: inherit

approve:
Expand Down Expand Up @@ -220,6 +226,7 @@ jobs:
execute_terraform_plan: ${{ inputs.execute_terraform_plan }}
upload_plan: false
download_existing_plan: true
python_version: ${{ inputs.python_version }}
secrets: inherit

# update-deployment:
Expand Down
Loading