attempting to fix github actions

This commit is contained in:
Amruth Pillai
2022-11-24 15:58:27 +01:00
parent f0e95905d2
commit a8034b21d5
2 changed files with 6 additions and 12 deletions

View File

@ -48,25 +48,18 @@ jobs:
username: $GITHUB_REPOSITORY_OWNER
password: ${{ secrets.GH_TOKEN }}
- name: Setup Sentry CLI
uses: mathieu-bour/setup-sentry-cli@v1.3.0
with:
token: ${{ secrets.SENTRY_TOKEN }}
organization: reactive-resume
project: ${{ matrix.image }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v3.2.0
env:
SENTRY_ORG: reactive-resume
SENTRY_URL: https://sentry.io
SENTRY_PROJECT: ${{ matrix.image }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_TOKEN }}
with:
context: .
push: true
platforms: ${{ matrix.arch }}
file: ${{ matrix.image }}/Dockerfile
build_args: |
"SENTRY_ORG=reactive-resume"
"SENTRY_URL=https://sentry.io"
"SENTRY_PROJECT=${{ matrix.image }}"
"SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}"
tags: |
amruthpillai/reactive-resume:${{ matrix.image }}-latest
amruthpillai/reactive-resume:${{ matrix.image }}-${{ steps.version.outputs.current-version }}

View File

@ -55,6 +55,7 @@ const nextConfig = {
/** @type {import('@sentry/nextjs').SentryWebpackPluginOptions} */
const sentryConfig = {
silent: true,
dryRun: process.env.NODE_ENV !== 'production',
};
module.exports = withSentryConfig(nextConfig, sentryConfig);