diff --git a/.github/workflows/ci-cd-dev.yaml b/.github/workflows/ci-cd-dev.yaml index 731b9c6..3953783 100644 --- a/.github/workflows/ci-cd-dev.yaml +++ b/.github/workflows/ci-cd-dev.yaml @@ -44,6 +44,7 @@ jobs: docker build --no-cache \ --build-arg NEXT_PUBLIC_GA_ID="${{secrets.NEXT_PUBLIC_GA_ID}}" \ --build-arg DATABASE_URL="${{secrets.DATABASE_URL}}" \ + --build-arg GCP_SECONDARY_BUCKET_NAME=${{secrets.GCP_SECONDARY_BUCKET_NAME}} \ -f Dockerfile \ -t "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.SERVICE }}:${{ env.TAG }}" ./ docker push "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.SERVICE }}:${{ env.TAG }}" diff --git a/Dockerfile b/Dockerfile index fc89bc4..03d2573 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ ENV NEXT_TELEMETRY_DISABLED 1 ARG NEXT_PUBLIC_GA_ID ARG DATABASE_URL +ARG GCP_SECONDARY_BUCKET_NAME ENV NEXT_PUBLIC_GA_ID=$NEXT_PUBLIC_GA_ID RUN npm run build @@ -28,7 +29,6 @@ RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ -COPY --from=builder /app/next.config.js ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static COPY --from=builder --chown=nextjs:nodejs /app/public ./public