Skip to content

Commit

Permalink
try and fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
docimin committed Jan 19, 2025
1 parent 0b170d2 commit 0823af2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,20 @@ jobs:
- name: Install Dependencies
run: pnpm install

# Prepare the Docker image
# Step 3: Build the Next.js project
- name: Build Project
run: pnpm build

# Step 4: Prepare the Docker image
- name: Log in to Harbor Registry
uses: docker/login-action@v3
with:
registry: harbor.fayevr.dev
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker Image
run: docker build -t harbor.fayevr.dev/fleet/fayevr.dev:latest .

# Push the Docker image to Harbor
- name: Push Docker Image
run: docker push harbor.fayevr.dev/fleet/fayevr.dev:latest
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: harbor.fayevr.dev/fleet/fayevr.dev:latest
6 changes: 5 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
const nextConfig = {
output: 'standalone',
images: {
domains: ['cdn.discordapp.com', 'dash.fayevr.dev'],
remotePatterns: [
'cdn.discordapp.com',
'cdn.discord.com',
'dash.fayevr.dev',
],
},
}

Expand Down

0 comments on commit 0823af2

Please sign in to comment.