Skip to content

Commit

Permalink
apply job
Browse files Browse the repository at this point in the history
  • Loading branch information
LamSut authored Dec 19, 2024
1 parent cd317f4 commit 3748e1c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/apply.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Terraform 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: 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 3748e1c

Please sign in to comment.