Skip to content

Commit

Permalink
testing github workspace trigger 10
Browse files Browse the repository at this point in the history
  • Loading branch information
gaganhattar committed Jul 13, 2024
1 parent f700b91 commit 4965e03
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,30 @@ jobs: # jobs are steps to excute in the pipeline
run:
shell: bash
working-directory: ./terraform #action will cd into this dir

steps:
- name: "checkout the source code"
uses: actions/checkout@v4 #pre-defined actions in guthub marketplace
with:
token: ${{secrets.GIT_ACTION_TOKEN}}
fetch-depth: 0
ref: 'stage'


- name: check environment vars
run: |
echo "aws access key is ${{ secrets.AWS_ACCESS_KEY_ID }}"
echo "aws secret is ${{ secrets.AWS_SECRET_ACCESS_KEY }}"
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4

with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2



- name: Setup Terraform with specified version on the runner/container
uses: hashicorp/setup-terraform@v3

Expand Down

0 comments on commit 4965e03

Please sign in to comment.