Skip to content

Commit 2b71eee

Browse files
committed
Split cupcake and frosting to separate repositories
1 parent 97bd3e8 commit 2b71eee

92 files changed

Lines changed: 104 additions & 13497 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- main
77
tags-ignore:
88
- '**'
9-
paths:
10-
- backend/**
11-
- .github/workflows/backend.yaml
129
workflow_dispatch:
1310

1411
permissions:
@@ -34,7 +31,6 @@ jobs:
3431

3532
- name: Test
3633
run: ./gradlew clean check
37-
working-directory: backend
3834

3935
- name: Set up QEMU
4036
uses: docker/setup-qemu-action@v4
@@ -63,7 +59,7 @@ jobs:
6359
- name: Build and push
6460
uses: docker/build-push-action@v7
6561
with:
66-
context: ./backend
62+
context: .
6763
platforms: linux/amd64,linux/arm64
6864
push: true
6965
tags: ${{ steps.meta.outputs.tags }}
@@ -81,21 +77,20 @@ jobs:
8177
- name: Generate summary
8278
run: |
8379
echo "Tag: ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
84-
working-directory: backend
8580
8681
- name: Upload reports if failed
8782
if: failure()
8883
uses: actions/upload-artifact@v7
8984
with:
9085
name: cupcake-reports
9186
path: |
92-
backend/**/build/reports/
93-
backend/**/build/test-results/
87+
**/build/reports/
88+
**/build/test-results/
9489
9590
- name: Upload coverage if passed
9691
if: success()
9792
uses: actions/upload-artifact@v7
9893
with:
9994
name: cupcake-coverage
10095
path: |
101-
backend/**/build/reports/jacoco/
96+
**/build/reports/jacoco/

.github/workflows/frontend.yaml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/pr-frontend.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
pull_request:
55
branches:
66
- main
7-
paths:
8-
- backend/**
9-
- .github/workflows/pr-backend.yaml
107
workflow_dispatch:
118

129
permissions:
@@ -30,13 +27,12 @@ jobs:
3027

3128
- name: Check
3229
run: ./gradlew check
33-
working-directory: backend
3430

3531
- name: Upload reports on failure
3632
if: failure()
3733
uses: actions/upload-artifact@v7
3834
with:
3935
name: backend-reports
4036
path: |
41-
backend/**/build/reports/
42-
backend/**/build/test-results/
37+
**/build/reports/
38+
**/build/test-results/

.github/workflows/release.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,3 @@ jobs:
3232
--tag ghcr.io/javabin/cupcake:${{ github.ref_name }} \
3333
ghcr.io/javabin/cupcake:staging
3434
35-
- name: Create release tag from staging frosting
36-
run: |
37-
docker buildx imagetools create \
38-
--tag ghcr.io/javabin/frosting:release \
39-
ghcr.io/javabin/frosting:staging
40-
41-
- name: Create version tag from staging frosting
42-
run: |
43-
docker buildx imagetools create \
44-
--tag ghcr.io/javabin/frosting:${{ github.ref_name }} \
45-
ghcr.io/javabin/frosting:staging

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ out/
3737

3838
### VS Code ###
3939
.vscode/
40+
4041
.claude
File renamed without changes.

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A minimal server providing a read-only version of [cake](https://github.com/javaBin/cake-redux) for javaBin regions to
44
be able to find possible speakers for local talks.
55

6-
For frontend - see [frosting](./frontend)
6+
For frontend - see [frosting](https://github.com/javaBin/frosting)
77

88
## Build
99

@@ -23,7 +23,7 @@ You will require env variables:
2323
JWT_ENABLED=true/false
2424

2525
The frontend OIDC authority and client ID can be overridden via `NUXT_PUBLIC_OIDC_AUTHORITY` and
26-
`NUXT_PUBLIC_OIDC_CLIENT_ID` (see [frontend README](./frontend/README.md)). They default to the
26+
`NUXT_PUBLIC_OIDC_CLIENT_ID` (see [frontend README](https://github.com/javaBin/frosting/README.md)). They default to the
2727
development Keycloak realm and client, so no change is needed for local dev against that environment.
2828

2929
If you are not running with auth (`JWT_ENABLED=false`) then localhost is fine.
@@ -48,12 +48,11 @@ For example - let's say we setup:
4848
https://cupcake.javazone.no -> frontend
4949

5050
We would then need to set the host in the frontend for non development builds to `https://cupcake_backend.javazone.no` in
51-
the [proxy](./frontend/server/middleware/proxy.ts) file - but this is set using the CUPCAKE_BACKEND env var.
51+
the [proxy](https://github.com/javaBin/frosting/server/middleware/proxy.ts) file - but this is set using the CUPCAKE_BACKEND env var.
5252

5353
All app configuration for the backend is done via the environment.
5454

55-
If deploying with docker - you can place both on the same docker network and use the service name for the env var - see
56-
[docker-compose.yml](./docker-compose.yml) for an example.
55+
If deploying with docker - you can place both on the same docker network and use the service name for the env var.
5756

5857
### JWT
5958

0 commit comments

Comments
 (0)