Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test PR #4969

Closed
wants to merge 1 commit into from
Closed

Test PR #4969

Show file tree
Hide file tree
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
51 changes: 0 additions & 51 deletions .github/workflows/cve-scan-pr.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/run-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: HMDA Platform CI

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
pull-requests: write

env:
LOCAL_REGISTRY: ghcr.io/${{ github.repository }}

jobs:
build-image:
runs-on: ubuntu-latest
container: sbtscala/scala-sbt:eclipse-temurin-11.0.16_1.7.3_2.12.17
steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Build Docker image of HMDA platform
run: |
env JAVA_OPTS="-Xss256m -Xmx4096m" sbt "project hmda-platform" dockerPublishLocalSkipTests
continue-on-error: false

- name: Tag and name Docker image
run: docker tag hmda/hmda-platform:latest ${{ env.LOCAL_REGISTRY }}:${{ github.sha }}

- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push image
run: |
docker push ${{ env.LOCAL_REGISTRY }}:${{ github.sha }}



hmda-platform-cve-scan:
runs-on: ubuntu-latest

steps:
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Scan image
uses: anchore/scan-action@v6
with:
image: ${{ env.LOCAL_REGISTRY }}:${{ github.sha }}
Loading
Loading