Skip to content

Commit

Permalink
ci: add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Jul 11, 2023
1 parent 992d310 commit 58521f5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Deploy"
on:
push:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Install terraform
run: sudo snap install terraform --classic

- name: Initialise terraform
run: |
terraform init
env:
ARM_ACCESS_KEY: ${{ secrets.ARM_ACCESS_KEY }}
TF_VAR_do_token: ${{ secrets.TF_VAR_do_token }}

- name: Deploy
run: |
terraform apply -auto-approve
env:
ARM_ACCESS_KEY: ${{ secrets.ARM_ACCESS_KEY }}
TF_VAR_do_token: ${{ secrets.TF_VAR_do_token }}

0 comments on commit 58521f5

Please sign in to comment.