Skip to content

Commit 4600d38

Browse files
committed
Split app in backend and frontend directories
1 parent b30b150 commit 4600d38

File tree

73 files changed

+39
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+39
-15
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,19 @@ on:
55
- main
66
tags-ignore:
77
- '*'
8+
paths:
9+
- 'backend/**'
10+
- '.github/workflows/build.yml'
811
pull_request:
912
branches:
1013
- main
14+
paths:
15+
- 'backend/**'
16+
- '.github/workflows/build.yml'
1117
workflow_dispatch:
1218

1319
concurrency:
14-
# On main, we don't want any jobs cancelled so the sha is used to name the group
20+
# On main, we don't want any jobs cancelled, so the SHA hash is used to name the group
1521
# On PR branches, we cancel the job if new commits are pushed
1622
# More info: https://stackoverflow.com/a/68422069/253468
1723
group: ${{ (github.ref == 'refs/heads/main') && format('{0}-{1}', github.workflow_ref, github.sha) || format('{0}-{1}', github.workflow_ref, github.head_ref) }}
@@ -23,6 +29,9 @@ jobs:
2329
contents: read
2430
checks: write # for publishing test results and annotations
2531
runs-on: ubuntu-latest
32+
defaults:
33+
run:
34+
working-directory: ./backend
2635
steps:
2736
- uses: actions/checkout@v5
2837
with:
@@ -51,4 +60,4 @@ jobs:
5160
uses: mikepenz/action-junit-report@v5
5261
if: ${{ !cancelled() }} # always run even if the previous step fails
5362
with:
54-
report_paths: '**/build/test-results/test/TEST-*.xml'
63+
report_paths: '**/backend/build/test-results/test/TEST-*.xml'

.github/workflows/on-release-tag.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
packages: write
2323
outputs:
2424
version: ${{ steps.get-version.outputs.version }}
25+
defaults:
26+
run:
27+
working-directory: ./backend
2528
steps:
2629
- uses: actions/checkout@v5
2730

@@ -91,7 +94,7 @@ jobs:
9194
--build-arg VERSION=${VERSION} \
9295
-t ghcr.io/hackyourfuture/course-hub-frontend:${{ steps.get-version.outputs.version }} \
9396
-t ghcr.io/hackyourfuture/course-hub-frontend:latest \
94-
ui
97+
frontend
9598
if [ "$DOCKER_PUSH" = "true" ]; then
9699
docker push ghcr.io/hackyourfuture/course-hub-frontend:${{ steps.get-version.outputs.version }}
97100
docker push ghcr.io/hackyourfuture/course-hub-frontend:latest
@@ -106,4 +109,4 @@ jobs:
106109
uses: ./.github/workflows/deploy-to-digital-ocean.yml
107110
secrets: inherit
108111
with:
109-
version: ${{ needs.build-image.outputs.version }}
112+
version: ${{ needs.build-course-hub-backend.outputs.version }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
# Build files
88
**/build/
9-
!src/**/build/
109
out
1110

1211
# Java
@@ -22,6 +21,8 @@ out
2221
.gradletasknamecache
2322
gradle-app.setting
2423

24+
# Docker compose override
25+
docker-compose.override.yaml
2526

2627
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
2728
!gradle-wrapper.jar

README.md

Lines changed: 10 additions & 10 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)