-
Notifications
You must be signed in to change notification settings - Fork 4
27 lines (27 loc) · 915 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: CI
on:
push:
branches:
- master
workflow_dispatch:
jobs:
plan:
runs-on: ubuntu-latest
container: "haxe/terraform_devcontainer_workspace:20240527203536"
env:
TF_INPUT: 0
TF_IN_AUTOMATION: 1
AWS_DEFAULT_REGION: eu-west-1
steps:
- uses: actions/checkout@v3
- run: terraform init
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TF_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TF_AWS_SECRET_ACCESS_KEY }}
- run: terraform plan -detailed-exitcode
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TF_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TF_AWS_SECRET_ACCESS_KEY }}
DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
SPACES_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY_ID }}
SPACES_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_ACCESS_KEY }}