diff --git a/.github/workflows/echo_vars.yaml b/.github/workflows/echo_vars.yaml new file mode 100644 index 0000000..192fd5a --- /dev/null +++ b/.github/workflows/echo_vars.yaml @@ -0,0 +1,17 @@ +# This is a basic workflow to help you get started with Actions +name: Echo Vars + +# Controls when the workflow will run +on: + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + Echo: + # The type of runner that the job will run on + runs-on: [ "229685449397" ] + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - run: | + env | grep -i proxy diff --git a/.github/workflows/terraform_apply.yaml b/.github/workflows/terraform_apply.yaml index b48c1ce..b70698e 100644 --- a/.github/workflows/terraform_apply.yaml +++ b/.github/workflows/terraform_apply.yaml @@ -13,20 +13,15 @@ jobs: # This workflow contains a single job called "build" Apply: # The type of runner that the job will run on - runs-on: [ automation-repos ] + runs-on: [ "229685449397" ] env: - AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" - AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}" - AWS_DEFAULT_REGION: "${{ vars.AWS_DEFAULT_REGION }}" - GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}" + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - - uses: CSVD/gh-actions-setup-node@v3 with: node-version: 16 @@ -35,15 +30,6 @@ jobs: with: terraform_wrapper: false terraform_version: ${{ vars.terraform_version }} - - - name: Terraform Format - id: fmt - run: | - terraform fmt -check - - - name: Autoformat Halt - if: env.auto_format == 'true' - run: exit 1 - name: Terraform Init id: init @@ -53,7 +39,11 @@ jobs: id: validate run: terraform validate - - name: Terraform Apply + - name: Terraform Plan id: plan - run: terraform apply -auto-approve - continue-on-error: true + run: terraform validate + +# - name: Terraform Apply +# id: plan +# run: terraform apply -auto-approve +# continue-on-error: true diff --git a/.github/workflows/terraform_plan.yaml b/.github/workflows/terraform_plan.yaml index 4684893..13dcdbe 100644 --- a/.github/workflows/terraform_plan.yaml +++ b/.github/workflows/terraform_plan.yaml @@ -12,7 +12,7 @@ jobs: # This workflow contains a single job called "build" Plan: # The type of runner that the job will run on - runs-on: [ automation-repos ] + runs-on: [ "229685449397" ] env: AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}"