Skip to content

Commit b7164cc

Browse files
committed
fix(ci): remove hardcoded repository owner to allow CI and publish to run
1 parent 84b9ca9 commit b7164cc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
backend:
1212
name: Backend CI
1313
runs-on: ubuntu-latest
14-
if: github.repository_owner == 'corey-burns-dev'
1514
steps:
1615
- uses: actions/checkout@v4
1716

@@ -28,11 +27,10 @@ jobs:
2827

2928
- name: Test
3029
run: dotnet test chess.slnx --no-build
31-
30+
3231
frontend:
3332
name: Frontend CI
3433
runs-on: ubuntu-latest
35-
if: github.repository_owner == 'corey-burns-dev'
3634
steps:
3735
- uses: actions/checkout@v4
3836

@@ -42,12 +40,12 @@ jobs:
4240
bun-version: latest
4341

4442
- name: Install dependencies
45-
run: cd frontend && bun install
43+
run: cd frontend && bun install --ignore-scripts
4644

4745
- name: Lint
4846
run: cd frontend && bun run lint
4947

50-
- name: Typecheck
48+
- name: Type check
5149
run: cd frontend && bun run typecheck
5250

5351
- name: Build
@@ -60,12 +58,13 @@ jobs:
6058
name: Publish to GHCR
6159
needs: [backend, frontend]
6260
runs-on: ubuntu-latest
63-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && github.repository_owner == 'corey-burns-dev'
61+
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
6462
permissions:
6563
contents: read
6664
packages: write
6765
steps:
6866
- uses: actions/checkout@v4
67+
6968
- name: Log in to GHCR
7069
uses: docker/login-action@v3
7170
with:
@@ -77,13 +76,14 @@ jobs:
7776
uses: docker/build-push-action@v5
7877
with:
7978
context: ./backend
79+
target: production
8080
push: true
8181
tags: ghcr.io/${{ github.repository_owner }}/chess-backend:latest
82-
target: production
8382

8483
- name: Build and push Frontend
8584
uses: docker/build-push-action@v5
8685
with:
8786
context: ./frontend
87+
target: production
8888
push: true
8989
tags: ghcr.io/${{ github.repository_owner }}/chess-frontend:latest

0 commit comments

Comments
 (0)