Skip to content

Commit

Permalink
feat(ci): add deployment workflow for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
vmttn committed Aug 28, 2023
1 parent 04b838d commit 4a0dfc3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: api

defaults:
run:
working-directory: deployment

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"

jobs:
tests:
runs-on: ubuntu-20.04

environment: staging

steps:
- uses: actions/checkout@v2

# AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY will be sourced from environment
- name: tf init
run: |
docker compose run --rm tf -chdir=environments/staging init \
-backend-config "bucket=data-inclusion-terraform" \
-backend-config "key=stack_data/staging" \
-backend-config "region=fr-par" \
-backend-config "endpoint=https://s3.fr-par.scw.cloud"
- name: tf validate
run: |
docker compose run --rm tf -chdir=environments/staging validate

0 comments on commit 4a0dfc3

Please sign in to comment.