Skip to content

Commit

Permalink
Merge pull request #299 from FAIRDataTeam/release/1.15.0
Browse files Browse the repository at this point in the history
Release 1.15.0
  • Loading branch information
MarekSuchanek authored Jul 11, 2022
2 parents b5891c7 + f5df373 commit 609a912
Show file tree
Hide file tree
Showing 66 changed files with 3,286 additions and 276 deletions.
155 changes: 155 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
name: "Test & Build"

on:
push:
pull_request:

jobs:
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up MongoDB
uses: ankane/setup-mongodb@v1
with:
mongodb-version: '5.0'

- name: Set up JDK 17 (Temurin)
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Compile
run: |
mvn -q -U -B compile
- name: Test
run: |
mvn -q -U -B test
- name: Package
run: |
mvn -q -U -B -ff -DskipTests package
- name: Verify
run: |
mvn -q -U -B -ff -DskipTests verify
docker:
name: Docker build
runs-on: ubuntu-latest
needs: test

env:
PUBLIC_IMAGE: fairdata/fairdatapoint
PRIVATE_IMAGE: ${{ secrets.PRIVATE_REGISTRY_URL }}/fairdatapoint

steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Check available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Docker meta [test]
id: meta-test
uses: docker/metadata-action@v4
with:
images: |
${{ env.PUBLIC_IMAGE }}
tags: |
type=sha
- name: Docker build+push [test]
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile.build
platforms: linux/amd64,linux/arm64
push: false
tags: ${{ steps.meta-test.outputs.tags }}
labels: ${{ steps.meta-test.outputs.labels }}

# PRIVATE: DOCKER REGISTRY
- name: Docker login [private]
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ secrets.PRIVATE_REGISTRY_URL }}
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
password: ${{ secrets.PRIVATE_REGISTRY_PASSWORD }}

- name: Docker meta [private]
id: meta-private
if: github.event_name != 'pull_request'
uses: docker/metadata-action@v4
with:
images: |
${{ env.PRIVATE_IMAGE }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
- name: Docker build+push [private]
uses: docker/build-push-action@v3
if: github.event_name != 'pull_request' && steps.meta-private.outputs.tags != ''
with:
context: .
file: ./Dockerfile.build
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-private.outputs.tags }}
labels: ${{ steps.meta-private.outputs.labels }}

# PUBLIC: DOCKER HUB
- name: Docker login [public]
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Docker meta [public]
id: meta-public
if: github.event_name != 'pull_request'
uses: docker/metadata-action@v4
with:
images: |
${{ env.PUBLIC_IMAGE }}
tags: |
type=raw,value=develop,enable=${{ github.ref == format('refs/heads/{0}', 'develop') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
- name: Docker build+push [public]
uses: docker/build-push-action@v3
if: github.event_name != 'pull_request' && steps.meta-public.outputs.tags != ''
with:
context: .
file: ./Dockerfile.build
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-public.outputs.tags }}
labels: ${{ steps.meta-public.outputs.labels }}
158 changes: 0 additions & 158 deletions .github/workflows/main.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
# (3) -> Init CodeQL
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: 'java'

Expand All @@ -77,7 +77,7 @@ jobs:
# (4) -> CodeQL Analysis
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

snyk:
name: Snyk (Maven)
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]


## [1.15.0]

### Added

- Extended search (filters, simple and complex query)
- Add saved search queries
- Several dependencies updated

## [1.14.0]

### Added
Expand Down Expand Up @@ -314,3 +322,4 @@ The first release of reference FAIR Data Point implementation.
[1.13.1]: /../../tree/v1.13.1
[1.13.2]: /../../tree/v1.13.2
[1.14.0]: /../../tree/v1.14.0
[1.15.0]: /../../tree/v1.15.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# THE SOFTWARE.
#

FROM openjdk:17-jdk-slim
FROM eclipse-temurin:17-jdk-focal

WORKDIR /fdp

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
#
################################################################################
# BUILD STAGE
FROM maven:3-openjdk-17-slim as builder
FROM maven:3-eclipse-temurin-17-focal as builder

WORKDIR /builder

ADD . /builder

RUN mvn --quiet -B -U --fail-fast -DskipTests package
RUN mvn -q -B -U -ff -DskipTests package

################################################################################
# RUN STAGE
FROM openjdk:17-jdk-slim
FROM eclipse-temurin:17-jdk-focal

WORKDIR /fdp

Expand Down
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ We support the latest major and minor version with patch versions that fix vulne

| Version | Supported |
|---------| ------------------ |
| 1.14.0 | :white_check_mark: |
| < 1.14 | :x: |
| 1.15.0 | :white_check_mark: |
| < 1.15 | :x: |

## Current Recommendations

* Use 1.14.0 with the newest dependencies (and no known vulnerabilities)
* Use 1.15.0 with the newest dependencies (and no known vulnerabilities)

## Reporting a Vulnerability

Expand Down
Loading

0 comments on commit 609a912

Please sign in to comment.