Skip to content

Commit

Permalink
Update apply.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LamSut authored Dec 19, 2024
1 parent 1035c2b commit c22c135
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,23 @@ name: Apply
on:
workflow_dispatch:

env:
TF_VAR_gitlab_token: ${{ secrets.GITLAB_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
AWS_DEFAULT_REGION: "us-east-1"

jobs:
apply:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Download Planfile from S3
run: aws s3 cp s3://${{ secrets.S3_BUCKET }}/planfile planfile
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}

- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.6

- name: Download Planfile
uses: actions/download-artifact@v3
with:
name: planfile

- name: Terraform Apply
run: terraform apply -input=false planfile

0 comments on commit c22c135

Please sign in to comment.