Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/docker-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Docker Build Validation

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-docker-images:
name: Build Docker Images
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Backend Image
uses: docker/build-push-action@v5
with:
context: ./backend
file: ./backend/Dockerfile
push: false
tags: secuscan-backend:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build Frontend Image
uses: docker/build-push-action@v5
with:
context: ./frontend
file: ./frontend/Dockerfile
push: false
tags: secuscan-frontend:latest
cache-from: type=gha
cache-to: type=gha,mode=max
Loading