Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Ignore git directory.
/.git/

# Ignore CI/CD and infrastructure
/.github/
/infra/

# Ignore bundler config.
/.bundle

Expand Down
21 changes: 17 additions & 4 deletions .github/workflows/infra-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,17 @@ permissions:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_REGION: me-central-1
ENVIRONMENT: production

defaults:
run:
working-directory: infra

jobs:
deploy:
name: Deploy to Production
name: Deploy to ${{ env.ENVIRONMENT }}
runs-on: ubuntu-latest
environment: production
env:
ENVIRONMENT: production
environment: ${{ env.ENVIRONMENT }}
steps:
- name: Deployment Info
run: |
Expand Down Expand Up @@ -78,3 +77,17 @@ jobs:
run: |
set -euo pipefail
yarn cdk deploy --require-approval never --context imageVersion=${{ inputs.imageVersion }}

- name: Slack Notification
if: ${{ always() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: ${{ job.status }}
SLACK_TITLE: 'Fizzy CDK Deployment'
SLACK_MESSAGE: |
*Environment:* `${{ env.ENVIRONMENT }}`

*Image Version:* `${{ inputs.imageVersion }}`

*Commit Message:* ${{ github.event.head_commit.message }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}