diff --git a/.env.example b/.env.example index 65e3ab1a..7f5a61f0 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,7 @@ TURBO_TEAM= TURBO_TOKEN= # Sentry Error Logging (Optional) +SENTRY_AUTH_TOKEN= SERVER_SENTRY_DSN= PUBLIC_CLIENT_SENTRY_DSN= diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index 0c949150..506f2c0d 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -48,6 +48,21 @@ jobs: username: $GITHUB_REPOSITORY_OWNER password: ${{ secrets.GH_TOKEN }} + - name: Build and Push Docker Image + uses: docker/build-push-action@v3.2.0 + with: + context: . + push: true + platforms: linux/amd64 + file: ${{ matrix.image }}/Dockerfile + secrets: | + "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" + tags: | + amruthpillai/reactive-resume:${{ matrix.image }}-latest + amruthpillai/reactive-resume:${{ matrix.image }}-${{ steps.version.outputs.current-version }} + ghcr.io/amruthpillai/reactive-resume:${{ matrix.image }}-latest + ghcr.io/amruthpillai/reactive-resume:${{ matrix.image }}-${{ steps.version.outputs.current-version }} + - name: Create Sentry Release uses: getsentry/action-release@v1.2.1 env: @@ -57,16 +72,3 @@ jobs: with: environment: production version: ${{ steps.version.outputs.current-version }} - - - name: Build and Push Docker Image - uses: docker/build-push-action@v3.2.0 - with: - context: . - push: true - platforms: linux/amd64 - file: ${{ matrix.image }}/Dockerfile - tags: | - amruthpillai/reactive-resume:${{ matrix.image }}-latest - amruthpillai/reactive-resume:${{ matrix.image }}-${{ steps.version.outputs.current-version }} - ghcr.io/amruthpillai/reactive-resume:${{ matrix.image }}-latest - ghcr.io/amruthpillai/reactive-resume:${{ matrix.image }}-${{ steps.version.outputs.current-version }}