Skip to content

Commit e19983f

Browse files
committed
Remove frontend and clean up unused deployment files
- Remove frontend component from CI/CD delivery pipeline - Add pull_request trigger for PR validation (build & scan only, no deploy) - Delete frontend Dockerfiles (frontend.Dockerfile, frontend.dev.Dockerfile) - Remove legacy server deployment configs (crontab, cryptify.nl.conf, cryptify.service) - Remove unused nginx configs (nginx.conf, nginx.dev.conf) - Remove example IRMA config (irma.example.json) - Update docker-compose files to reflect backend-only architecture
1 parent 11f1a70 commit e19983f

13 files changed

Lines changed: 5 additions & 257 deletions

.github/workflows/delivery.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ concurrency:
77
on:
88
push:
99
branches: [ main ]
10+
pull_request:
11+
branches: [ main ]
1012
release:
1113
# Note: a current limitation is that when a release is edited after publication, then the Docker tags are not automatically updated.
1214
types: [ published ]
@@ -27,18 +29,13 @@ jobs:
2729
strategy:
2830
fail-fast: false
2931
matrix:
30-
component: [backend, frontend]
32+
component: [backend]
3133
include:
3234
- component: backend
3335
dockerfile: backend.Dockerfile
3436
image_suffix: "-backend"
3537
local_tag: local/postguard-backend:scan
3638
sarif_category: backend
37-
- component: frontend
38-
dockerfile: frontend.Dockerfile
39-
image_suffix: "-frontend"
40-
local_tag: local/postguard-frontend:scan
41-
sarif_category: frontend
4239

4340
steps:
4441
- name: Checkout

backend.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.91.0-slim-trixie AS builder
1+
FROM rust:1.93.0-slim-trixie AS builder
22

33
ENV ROCKET_PROFILE=release
44

backend.dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.91.0-slim-trixie AS chef
1+
FROM rust:latest-slim AS chef
22

33
# Install cargo-chef for dependency caching
44
RUN cargo install cargo-chef cargo-watch

conf/crontab

Lines changed: 0 additions & 1 deletion
This file was deleted.

conf/cryptify.nl.conf

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

conf/cryptify.service

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

conf/irma.example.json

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

conf/nginx.conf

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

conf/nginx.dev.conf

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

docker-compose.dev.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
11
services:
2-
nginx:
3-
image: nginx:alpine
4-
container_name: nginx-dev
5-
ports:
6-
- "80:80"
7-
volumes:
8-
- "./conf/nginx.dev.conf:/etc/nginx/nginx.conf:ro"
9-
depends_on:
10-
- backend
11-
- frontend
12-
networks: [default]
13-
14-
frontend:
15-
build:
16-
context: .
17-
dockerfile: frontend.dev.Dockerfile
18-
container_name: frontend-dev
19-
environment:
20-
- REACT_APP_ENV=development
21-
ports:
22-
- "8080:8080"
23-
volumes:
24-
- "./cryptify-front-end/src:/app/src"
25-
- "./cryptify-front-end/public:/app/public"
26-
networks: [default]
27-
282
backend:
293
build:
304
context: .

0 commit comments

Comments
 (0)