Skip to content

Commit

Permalink
ci_cd,s3 backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorianteffo committed Jan 30, 2024
1 parent 08e7809 commit e5765d0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 48 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/cd.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/ci.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ci_cd
on:
push:
branches:
- iac_branch
pull_request:
branches:
- iac_branch
jobs:
run-ci-tests:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v2

- name: Spin up containers
run: make up

- name: Run CI test
run: make ci

deploy_terraform:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- name: chechout repo
uses: actions/checkout@v2

- name: Init terraform
run: make infra-init

- name: Terraform apply
run: make infra-apply

0 comments on commit e5765d0

Please sign in to comment.