Skip to content

Commit dfb8680

Browse files
committed
ci: fix cd build for main branch
1 parent 4d2470d commit dfb8680

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/cd.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
jobs:
1313
build-and-push-image-agent:
1414
runs-on: ubuntu-latest
15-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/funke'
15+
if: github.ref == 'refs/heads/main'
1616
permissions:
1717
contents: read
1818
packages: write
@@ -31,10 +31,6 @@ jobs:
3131
run: pnpm install --no-frozen-lockfile
3232

3333
- run: AGENT_HOST=https://playground.animo.id pnpm build
34-
if: github.ref == 'refs/heads/main'
35-
36-
- run: AGENT_HOST=https://funke.animo.id pnpm build
37-
if: github.ref == 'refs/heads/funke'
3834

3935
- name: Log in to the Container registry
4036
uses: docker/login-action@v3
@@ -59,7 +55,7 @@ jobs:
5955

6056
build-and-push-image-app:
6157
runs-on: ubuntu-latest
62-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/funke'
58+
if: github.ref == 'refs/heads/main'
6359
permissions:
6460
contents: read
6561
packages: write
@@ -77,11 +73,7 @@ jobs:
7773
- name: Install dependencies
7874
run: pnpm install --no-frozen-lockfile
7975

80-
- run: AGENT_HOST=https://playground.animo.id pnpm build
81-
if: github.ref == 'refs/heads/main'
82-
83-
- run: AGENT_HOST=https://funke.animo.id pnpm build
84-
if: github.ref == 'refs/heads/funke'
76+
- run: NEXT_PUBLIC_API_URL=https://playground.animo.id pnpm build
8577

8678
- name: Log in to the Container registry
8779
uses: docker/login-action@v3

0 commit comments

Comments
 (0)