Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rouja committed Sep 25, 2024
1 parent bece79f commit 6667e19
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Docker Hub Workflow
run-name: Docker Hub Workflow

on:
workflow_dispatch:
Expand Down Expand Up @@ -48,6 +49,20 @@ jobs:
name: Login to DockerHub
if: github.event_name != 'pull_request'
run: echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USER" --password-stdin
-
name: Build an image from Dockerfile
run: |
docker build --target backend-production -t docker.io/lasuite/meet-backend:${{ github.sha }} .
-
name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: 'docker.io/lasuite/meet-backend:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
-
name: Build and push
uses: docker/build-push-action@v5
Expand Down Expand Up @@ -92,6 +107,20 @@ jobs:
name: Login to DockerHub
if: github.event_name != 'pull_request'
run: echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USER" --password-stdin
-
name: Build an image from Dockerfile
run: |
docker build -f src/frontend/Dockerfile -t docker.io/lasuite/meet-frontend:${{ github.sha }} .
-
name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: 'docker.io/lasuite/meet-frontend:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
-
name: Build and push
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 6667e19

Please sign in to comment.