From 6aaa8f1fa1d5295a6470a7fb53a0c4ab6fe1b119 Mon Sep 17 00:00:00 2001 From: Adrian Taut Date: Thu, 22 Jan 2026 14:53:37 +0200 Subject: [PATCH 1/2] chore: add dockerignore entries and Slack notification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add /.github/ and /infra/ to .dockerignore for better Docker cache - Add Slack notification to infra-deploy workflow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .dockerignore | 4 ++++ .github/workflows/infra-deploy.yml | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.dockerignore b/.dockerignore index df5bbdacc5..5f3b4cb308 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,6 +3,10 @@ # Ignore git directory. /.git/ +# Ignore CI/CD and infrastructure +/.github/ +/infra/ + # Ignore bundler config. /.bundle diff --git a/.github/workflows/infra-deploy.yml b/.github/workflows/infra-deploy.yml index 6fa278b712..08b13f949e 100644 --- a/.github/workflows/infra-deploy.yml +++ b/.github/workflows/infra-deploy.yml @@ -78,3 +78,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:* `production` + + *Image Version:* `${{ inputs.imageVersion }}` + + *Commit Message:* ${{ github.event.head_commit.message }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} From 86945e3efce7554395c3a6ac904984db1d594330 Mon Sep 17 00:00:00 2001 From: Adrian Taut Date: Thu, 22 Jan 2026 15:00:27 +0200 Subject: [PATCH 2/2] refactor: consolidate ENVIRONMENT references in infra-deploy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Define ENVIRONMENT once at workflow level and reference it elsewhere. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/infra-deploy.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/infra-deploy.yml b/.github/workflows/infra-deploy.yml index 08b13f949e..585a1034b5 100644 --- a/.github/workflows/infra-deploy.yml +++ b/.github/workflows/infra-deploy.yml @@ -26,6 +26,7 @@ permissions: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} AWS_REGION: me-central-1 + ENVIRONMENT: production defaults: run: @@ -33,11 +34,9 @@ defaults: 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: | @@ -86,7 +85,7 @@ jobs: SLACK_COLOR: ${{ job.status }} SLACK_TITLE: 'Fizzy CDK Deployment' SLACK_MESSAGE: | - *Environment:* `production` + *Environment:* `${{ env.ENVIRONMENT }}` *Image Version:* `${{ inputs.imageVersion }}`