Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) from 2.0.3 to 3.0.0. - [Release notes](https://github.com/hashicorp/setup-terraform/releases) - [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/setup-terraform/compare/633666f66e0061ca3b725c73b2ec20cd13a8fdd1...a1502cd9e758c50496cc9ac5308c4843bcd56d36) --- updated-dependencies: - dependency-name: hashicorp/setup-terraform dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
55 lines
1.8 KiB
YAML
55 lines
1.8 KiB
YAML
name: test-ci-bootstrap-oss
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- enos/ci/**
|
|
- .github/workflows/test-ci-bootstrap-oss.yml
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- enos/ci/**
|
|
- .github/workflows/test-ci-bootstrap-oss.yml
|
|
|
|
jobs:
|
|
bootstrap-ci-oss:
|
|
if: ${{ github.event.repository.name == 'boundary' }}
|
|
env:
|
|
TF_WORKSPACE: "boundary-ci-enos-bootstrap"
|
|
TF_VAR_repository: boundary
|
|
TF_VAR_aws_ssh_public_key: ${{ secrets.SSH_KEY_PUBLIC_CI }}
|
|
TF_TOKEN_app_terraform_io: ${{ secrets.TF_API_TOKEN }}
|
|
runs-on: ${{ fromJSON(vars.RUNNER) }}
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
- name: Set up Terraform
|
|
uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # TSCCR: loading action configs: failed to query HEAD reference: failed to get advertised references: authorization failed
|
|
- name: Configure AWS credentials
|
|
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_CI }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_CI }}
|
|
aws-region: us-east-1
|
|
role-to-assume: ${{ secrets.AWS_ROLE_ARN_CI }}
|
|
role-skip-session-tagging: true
|
|
role-duration-seconds: 3600
|
|
- name: Init Terraform
|
|
id: tf_init
|
|
run: |
|
|
terraform -chdir=enos/ci/bootstrap init
|
|
- name: Plan Terraform
|
|
id: tf_plan
|
|
run: |
|
|
terraform -chdir=enos/ci/bootstrap plan
|
|
- name: Apply Terraform
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
id: tf_apply
|
|
run: |
|
|
terraform -chdir=enos/ci/bootstrap apply -auto-approve
|