test new build
Some checks failed
Build and Deploy docker container / build (push) Failing after 1m50s

This commit is contained in:
Jonathan Branan 2024-11-19 14:50:18 -06:00
parent 1230e8d9f3
commit 43e4aed2db
2 changed files with 13 additions and 14 deletions

View File

@ -6,16 +6,16 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Send message job is starting # - name: Send message job is starting
uses: cstuder/apprise-ga@master # uses: cstuder/apprise-ga@master
with: # with:
title: 'jonb.io site deployment' # title: 'jonb.io site deployment'
message: >- # message: >-
Started build for: # Started build for:
Commit by {{ head_commit.author.name }}: {{ head_commit.message | # Commit by {{ head_commit.author.name }}: {{ head_commit.message |
truncate(128) }} ({{ head_commit.id[0:7] }}) # truncate(128) }} ({{ head_commit.id[0:7] }})
env: # env:
APPRISE_URL: '${{ secrets.APPRISE_URL }}' # APPRISE_URL: '${{ secrets.APPRISE_URL }}'
- name: Checkout main - name: Checkout main
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Yarn - name: Install Yarn
@ -34,8 +34,7 @@ jobs:
with: with:
path: | path: |
${{ steps.yarn-cache-dir-path.outputs.dir }} ${{ steps.yarn-cache-dir-path.outputs.dir }}
${{ github.workspace }}/.next/cache ${{ github.workspace }}/.next/
${{ github.workspace }}/.yarn/cache
key: '${{ runner.os }}-yarn-${{ hashFiles(''**/yarn.lock'') }}' key: '${{ runner.os }}-yarn-${{ hashFiles(''**/yarn.lock'') }}'
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
@ -44,7 +43,7 @@ jobs:
- name: Lint - name: Lint
run: yarn lint run: yarn lint
- name: Build app and export to ./out - name: Build app and export to ./out
run: EXPORT=0 UNOPTIMIZED=1 yarn build run: yarn build
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub - name: Login to Docker Hub

View File

@ -54,7 +54,7 @@ const securityHeaders = [
}, },
] ]
const output = process.env.EXPORT ? 'export' : 'standalone' const output = process.env.EXPORT ? 'export' : undefined
const basePath = process.env.BASE_PATH || undefined const basePath = process.env.BASE_PATH || undefined
const unoptimized = process.env.UNOPTIMIZED ? true : undefined const unoptimized = process.env.UNOPTIMIZED ? true : undefined