aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-08-17 14:53:11 +0100
committerGravatar Joe Banks <[email protected]>2024-08-17 14:53:11 +0100
commitd5b977c75997015678814c7a4d5fc56642de7084 (patch)
tree6307d10d5911eba09d7cd18dd5d5766c389840db /.github
parentAllow specifying Dockerfile name to build-deploy (diff)
Build and publish frontend developemtn Docker image on changes
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 24b1a74..323b29f 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.changes.outputs.backend }}
+ frontend: ${{ steps.changes.outputs.frontend }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
@@ -27,6 +28,9 @@ jobs:
backend:
- *automation
- 'thallium-backend/**'
+ frontend:
+ - *automation
+ - 'thallium-frontend/**'
generate-inputs:
runs-on: ubuntu-latest
@@ -56,3 +60,13 @@ jobs:
sha-tag: ${{ needs.generate-inputs.outputs.sha-tag }}
project: backend
secrets: inherit
+
+ build-frontend:
+ if: ${{ needs.changes.outputs.frontend == 'true' }}
+ needs: [changes, generate-inputs, lint-frontend]
+ uses: ./.github/workflows/build-deploy.yaml
+ with:
+ sha-tag: ${{ needs.generate-inputs.outputs.sha-tag }}
+ project: frontend
+ dockerfile: Dockerfile.development
+ secrets: inherit