Skip to content

Commit

Permalink
Update infra.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guyrenny authored May 22, 2024
1 parent 9918c03 commit cdfb745
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/infra.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Infrastructure
# name: Infrastructure

on:
push:
branches: [master]
paths:
- 'infra/**'
pull_request:
types: [closed]
branches: [master]
paths:
- 'infra/**'
# on:
# push:
# branches: [master]
# paths:
# - 'infra/**'
# pull_request:
# types: [closed]
# branches: [master]
# paths:
# - 'infra/**'

env:
AWS_DEFAULT_REGION: eu-central-1
# env:
# AWS_DEFAULT_REGION: eu-central-1

jobs:
infrastructure:
name: Infrastructure
runs-on: aws-sam
env:
AWS_SERVERLESS_BUCKET: coralogix-serverless-repo
steps:
- name: Init
working-directory: infra/
run: terragrunt init
# jobs:
# infrastructure:
# name: Infrastructure
# runs-on: aws-sam
# env:
# AWS_SERVERLESS_BUCKET: coralogix-serverless-repo
# steps:
# - name: Init
# working-directory: infra/
# run: terragrunt init

- name: Validate
working-directory: infra/
run: terragrunt validate
# - name: Validate
# working-directory: infra/
# run: terragrunt validate

- name: Apply
working-directory: infra/
run: |
terragrunt apply \
-var="s3_bucket_name_prefix=${{ env.AWS_SERVERLESS_BUCKET }}" \
-auto-approve
# - name: Apply
# working-directory: infra/
# run: |
# terragrunt apply \
# -var="s3_bucket_name_prefix=${{ env.AWS_SERVERLESS_BUCKET }}" \
# -auto-approve

0 comments on commit cdfb745

Please sign in to comment.