From 65eb1738a6e14cc350cb76ce84727056f265ba9a Mon Sep 17 00:00:00 2001 From: Michael DAmato Date: Tue, 28 Nov 2023 12:21:11 -0500 Subject: [PATCH] move env --- .github/workflows/rocky8.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rocky8.yml b/.github/workflows/rocky8.yml index 6fa58f82..c6aff29e 100644 --- a/.github/workflows/rocky8.yml +++ b/.github/workflows/rocky8.yml @@ -5,10 +5,7 @@ on: pull_request: workflow_dispatch: -env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-gov-west-1 + jobs: @@ -77,6 +74,10 @@ jobs: cd testing/ terraform plan -var "GITHUB_RUN_ID=$GITHUB_RUN_ID" -var "os=rocky8" -no-color continue-on-error: true + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_DEFAULT_REGION: us-gov-west-1 - name: Terraform Plan Status if: steps.plan.outcome == 'failure' @@ -86,6 +87,10 @@ jobs: run: | cd testing/ terraform apply -var "GITHUB_RUN_ID=$GITHUB_RUN_ID" -var "os=rocky8" -auto-approve + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_DEFAULT_REGION: us-gov-west-1 - name: Set up Python id: setup_python