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

Release version 1.0.0. #1525

Merged
merged 210 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
64c8c70
Update documentation on release
ewelinagr Aug 25, 2023
a0ba09d
Prepare for next development cycle for version 0.7.30 [full build]
Aug 25, 2023
fad9cd1
Merge pull request #1432 from thehyve/travis-docs
ewelinagr Aug 28, 2023
de7899c
Apply Pluto config change in Helm setup.
ewelinagr Aug 28, 2023
c1e6ca6
Merge pull request #1433 from thehyve/pluto-config-fix
ewelinagr Aug 30, 2023
deb136b
Add fix for releasing helm charts to Google Storage.
ewelinagr Oct 20, 2023
8bee9d6
Update platform related env variables in Travis setup.
ewelinagr Oct 23, 2023
dbafb4f
prevent var usage by Lombok, since var is a language keyword since Ja…
frankyhollywood Oct 26, 2023
fc915ed
Merge pull request #1435 from thehyve/lombok-import
frankyhollywood Oct 30, 2023
0f7a7d9
Fix LocalDate to Timestamp conversion for Postgres db updates.
ewelinagr Nov 24, 2023
77428d4
Merge pull request #1436 from thehyve/date-to-timestamp-fix
ewelinagr Nov 24, 2023
ab68b36
limit number of items frontend receives
frankyhollywood Nov 27, 2023
94b7da9
fixed formatting
frankyhollywood Nov 27, 2023
411bb1e
performance improvement
frankyhollywood Nov 27, 2023
f33bdc9
use variable instead of number
frankyhollywood Nov 27, 2023
e676f17
updated packages to latest minor
frankyhollywood Nov 27, 2023
7adc1af
Merge pull request #1437 from thehyve/limit-items
frankyhollywood Nov 27, 2023
cc373a3
display max 100 items in lists in the left panel
frankyhollywood Nov 29, 2023
da27076
new docker compose syntax
frankyhollywood Nov 29, 2023
6617042
user friendly text
frankyhollywood Nov 30, 2023
5437f68
Merge pull request #1438 from thehyve/limit-items-rightpanel
frankyhollywood Nov 30, 2023
790e37c
Changes styling to show hidden digits in numeric facet
frankyhollywood Dec 5, 2023
210eab0
Update documentation
ewelinagr Dec 5, 2023
e07bbcb
Redirect to login page instead of error dialog on session expiration.
ewelinagr Dec 5, 2023
5f9936f
Merge pull request #1439 from thehyve/show-digits
frankyhollywood Dec 5, 2023
1af4782
Update local proxy setup not to use /dev prefix.
ewelinagr Dec 6, 2023
1d7598b
Merge pull request #1440 from thehyve/session-expiration
ewelinagr Dec 6, 2023
71e0a55
Make application name part of UI constants.
ewelinagr Dec 6, 2023
2554782
Merge pull request #1441 from thehyve/app-name
ewelinagr Dec 8, 2023
e764a22
Added a step to execute before the first run of the app locally
tgreenwood Dec 11, 2023
8d21c00
Merge pull request #1445 from thehyve/update_readme
tgreenwood Dec 11, 2023
2133f82
fixed frontend debugging
frankyhollywood Dec 11, 2023
5c61a04
set column order in views.yaml
frankyhollywood Dec 13, 2023
db2cfeb
small fix, group all joinview columns together
frankyhollywood Dec 13, 2023
7e10ef2
PR improvements
frankyhollywood Dec 13, 2023
5224bbe
PR improvement
frankyhollywood Dec 13, 2023
e494fa9
Test fix
frankyhollywood Dec 14, 2023
a24d37c
Merge pull request #1446 from thehyve/column-order
frankyhollywood Dec 14, 2023
36160ba
rename
frankyhollywood Dec 14, 2023
4b8ab0a
Select identifier of active view
frankyhollywood Dec 18, 2023
6e65371
Merge pull request #1448 from thehyve/id-column-selection
frankyhollywood Dec 18, 2023
c5da6fb
Dialog for metadata details
frankyhollywood Dec 20, 2023
95d9e42
cleanup
frankyhollywood Dec 20, 2023
7cdb27b
small styling improvements
frankyhollywood Dec 21, 2023
5cfda7d
Fix tests and styling of the linked data dialog.
ewelinagr Dec 27, 2023
01d7410
Merge pull request #1456 from thehyve/metadata-in-dialog
ewelinagr Dec 27, 2023
1c62a6d
FAIRSPC-11: (#1457)
tgreenwood Jan 2, 2024
e4b777c
reduced number of db calls for viewstorereader
frankyhollywood Jan 16, 2024
b232cb5
FAIRSPC-29: fixed numeric filter with forced casting to numeric (Post…
tgreenwood Jan 16, 2024
f298b6c
Merge pull request #1464 from thehyve/bugfix/FAIRSPC-29_fix_for_numer…
tgreenwood Jan 17, 2024
94179d8
handle unlinked nodes
frankyhollywood Jan 17, 2024
9485d70
Merge branch 'dev' into view-performance
frankyhollywood Jan 17, 2024
ffb5434
document pv persistence new statefulset
frankyhollywood Jan 18, 2024
63562c5
Update README.adoc
frankyhollywood Jan 18, 2024
a433d90
fixed typo
frankyhollywood Jan 18, 2024
583449f
Merge pull request #1467 from thehyve/documentation-volumes
frankyhollywood Jan 18, 2024
a9ed6b6
PR improvements
frankyhollywood Jan 18, 2024
4ee11e2
FAIRSPC-29: rolledback making returning map unmodifiable for view row
tgreenwood Jan 18, 2024
dda5c2d
Merge pull request #1465 from thehyve/view-performance
tgreenwood Jan 18, 2024
77c058c
Fixed NPE for numeric filter
tgreenwood Jan 18, 2024
5741299
Merge pull request #1469 from thehyve/bugfix/npe_numeric_filter
tgreenwood Jan 18, 2024
cde6302
Initial change to support external metadata view pages.
ewelinagr Jan 19, 2024
5be9bf5
Add support for external metadata views in Mercury.
ewelinagr Jan 19, 2024
ace952f
FAIRSPC-29: added caching of facets and views (#1466)
tgreenwood Jan 22, 2024
8e268e9
Add unit tests and documentation.
ewelinagr Jan 23, 2024
ebd43e6
add indexes for jointables
frankyhollywood Jan 23, 2024
41d6223
now it works :)
frankyhollywood Jan 24, 2024
52a2512
rename after PR comment
frankyhollywood Jan 24, 2024
30d304c
Add minor improvements and documentation updates.
ewelinagr Jan 24, 2024
f0914d0
String formatter simpler
frankyhollywood Jan 24, 2024
65c0888
change class access modifier
frankyhollywood Jan 24, 2024
f4de022
Add support for external metadata sources config in helm charts.
ewelinagr Jan 24, 2024
83c8543
handle error with column mappings
frankyhollywood Jan 24, 2024
5db2500
compare on const instead of variable to prevent NPE
frankyhollywood Jan 24, 2024
77fe0dd
PR comments
frankyhollywood Jan 25, 2024
23ec2f3
Merge pull request #1473 from thehyve/new-indexes
frankyhollywood Jan 25, 2024
b9c61a2
Chane autowired field injection into constructor injection.
ewelinagr Jan 25, 2024
eeaf8f5
Infra/fairspc 23 GitHub actions ci (#1455)
tgreenwood Jan 25, 2024
6797bc1
Merge pull request #1470 from thehyve/multi-model-views
ewelinagr Jan 25, 2024
0c1e235
Fix linter warnings on exhaustive-deps.
ewelinagr Jan 25, 2024
c0f1f1d
Make metadata view menu label configurable.
ewelinagr Jan 25, 2024
4255407
Merge pull request #1474 from thehyve/multi-model-views
ewelinagr Jan 25, 2024
05093c7
Update build_and_upload_on_push_to_dev.yaml
frankyhollywood Jan 26, 2024
8af2e99
Update build_and_upload_on_push_to_dev.yaml
frankyhollywood Jan 26, 2024
797f361
Update build_and_upload_on_push_to_dev.yaml
frankyhollywood Jan 26, 2024
39edcf9
Update build_and_upload_on_push_to_dev.yaml
frankyhollywood Jan 26, 2024
bf38b14
Update build_and_upload_on_push_to_dev.yaml
frankyhollywood Jan 26, 2024
de9f86f
new release with extra caching, multiple saturn instances and extra c…
frankyhollywood Jan 29, 2024
5fb4da6
Merge pull request #1475 from thehyve/new-release-build
frankyhollywood Jan 29, 2024
2ea6724
Always try create new index, necessary in case of update instead of n…
frankyhollywood Jan 29, 2024
51ac573
Merge pull request #1476 from thehyve/always-create-index
frankyhollywood Jan 29, 2024
1561aa9
FAIRPC-29: reduced number of calls to db on metadata request per view…
tgreenwood Jan 31, 2024
acdf5d3
FAIRPC-29: added tests for caching, made cached configurable and slig…
tgreenwood Jan 31, 2024
d0bc331
FAIRPC-29: fixed failing metadata request when no records found (#1478)
tgreenwood Jan 31, 2024
e8b5c10
Label value from constants
frankyhollywood Feb 5, 2024
5bd0cc5
Merge pull request #1479 from thehyve/label-change
frankyhollywood Feb 5, 2024
6d53528
Fix facets context for external sources.
ewelinagr Feb 5, 2024
a88720d
Merge pull request #1480 from thehyve/multi-model-views
ewelinagr Feb 5, 2024
bd4c1dd
Improve external metadata view error handling.
ewelinagr Feb 6, 2024
28f700a
Merge pull request #1482 from thehyve/multi-model-views
ewelinagr Feb 7, 2024
715c402
Use withCredentials for metadata API requests.
ewelinagr Feb 7, 2024
62adc83
Update session and cors config in Pluto.
ewelinagr Feb 8, 2024
354df4f
Include session cookie by default in all requests.
ewelinagr Feb 8, 2024
13c37a5
Revert default withCredentials axios flag.
ewelinagr Feb 9, 2024
f77579a
Update session configuration.
ewelinagr Feb 9, 2024
ecda27a
Dashboard first version
frankyhollywood Feb 12, 2024
9613403
Textual change on dashboard
frankyhollywood Feb 12, 2024
be51fe6
Fixed eslint errors
frankyhollywood Feb 12, 2024
87fd811
Removed comment
frankyhollywood Feb 12, 2024
35cbe87
Added icon and changed dashboard style
frankyhollywood Feb 13, 2024
4bbb34f
Use logo font for application name
frankyhollywood Feb 13, 2024
cf827c0
Auto scroll for modal dialog if content overflows
frankyhollywood Feb 13, 2024
90ed83a
Extend external metadata configuration.
ewelinagr Feb 13, 2024
b5dd178
Change user menu style
frankyhollywood Feb 13, 2024
1724f44
Merge pull request #1485 from thehyve/external-meta-docs
ewelinagr Feb 13, 2024
2261161
Performance improvements (#1481)
tgreenwood Feb 13, 2024
2efbf76
Fixed path of external metadata sources
frankyhollywood Feb 14, 2024
cf64e5c
Merge pull request #1483 from thehyve/dashboard
frankyhollywood Feb 14, 2024
8ca9d22
FAIRPC-29: fixed views and mv's update (#1486)
tgreenwood Feb 19, 2024
1aed0b6
fixed NPE on reindexing
tgreenwood Feb 19, 2024
62e3379
edited error message
tgreenwood Feb 19, 2024
c35faf5
Merge pull request #1488 from thehyve/npe_fix
ewelinagr Feb 19, 2024
c185e3c
Handle nullable subConstraints.
ewelinagr Feb 19, 2024
a4e5af3
fixed an issue on creating a join materialized view
tgreenwood Feb 19, 2024
269b1f0
Merge pull request #1490 from thehyve/mv_creation_fix
ewelinagr Feb 20, 2024
9b581e9
Merge pull request #1489 from thehyve/fix-subconstraints
ewelinagr Feb 20, 2024
904e9a1
fixed npe for non-joined views
tgreenwood Feb 20, 2024
f6888e9
Update comment.
ewelinagr Feb 21, 2024
49d29c8
Merge pull request #1491 from thehyve/non_joined_views_fix
ewelinagr Feb 21, 2024
73d3d47
updated doc with the information about materialized views (#1492)
tgreenwood Feb 22, 2024
0f9cbd8
Added spotless as a code format validator and auto-formatter
tgreenwood Feb 27, 2024
41a4cd3
Added spotless as a code format validator and auto-formatter for Plut…
tgreenwood Mar 1, 2024
78b3fe9
tiny code format fix
tgreenwood Mar 1, 2024
6179cc3
Merge pull request #1493 from thehyve/feature/FAIRSPC-20_auto_format_…
tgreenwood Mar 1, 2024
d3b997d
Pluto upgrades: Java to 21, Gradle to 8.6 and related dependencies.
ewelinagr Mar 4, 2024
68c84e9
Saturn upgrades: Java to 21, Gradle to 8.6, minor package updates.
ewelinagr Mar 4, 2024
cf4c96b
Update github actions to use Java 21.
ewelinagr Mar 4, 2024
8dac59c
Merge pull request #1495 from thehyve/upgrade-java21
ewelinagr Mar 5, 2024
0f0ea4a
Fixed eslint and added to build
tgreenwood Mar 4, 2024
3050df8
Upgrade Jena and Milton.
ewelinagr Mar 5, 2024
b76256b
Fix external storage context in Mercury.
ewelinagr Mar 6, 2024
04245d0
switched from react-app-rewired to craco
tgreenwood Mar 6, 2024
63a4c98
Fix browser console errors and warnings.
ewelinagr Mar 7, 2024
f136ddb
Merge pull request #1497 from thehyve/major-upgrades
ewelinagr Mar 7, 2024
3752980
Merge branch 'dev' into improvement/FAIRSPC-38_fixed_lint
tgreenwood Mar 12, 2024
4b0b2dc
Merge pull request #1496 from thehyve/improvement/FAIRSPC-38_fixed_lint
tgreenwood Mar 12, 2024
34f239d
Merge pull request #1499 from thehyve/fix-console-errors
ewelinagr Mar 12, 2024
80c29f7
tuned ESlint config (mostly removed work-arounds) and fixed code with…
tgreenwood Mar 13, 2024
8d54245
Fix issues detected by codeql.
ewelinagr Mar 13, 2024
1220f21
Merge pull request #1501 from thehyve/mercury-security-fixes
ewelinagr Mar 14, 2024
253f657
Bump follow-redirects from 1.15.3 to 1.15.6 in /projects/mercury
dependabot[bot] Mar 16, 2024
3484622
Improvement/fairpc 38 prettier (#1502)
tgreenwood Mar 18, 2024
cc6f849
Added README.md's for Saturn and Pluto to reflect the code style appr…
tgreenwood Mar 18, 2024
e907d0c
Mercury dependency update.
ewelinagr Mar 21, 2024
514507f
Merge pull request #1508 from thehyve/mercury-dependency-update
ewelinagr Mar 21, 2024
2f33a0b
Fix styling of access management card of collection right panel.
ewelinagr Mar 27, 2024
98bf85e
Adjust margins and paddings of collection's right panel.
ewelinagr Mar 28, 2024
9d86294
Merge pull request #1505 from thehyve/dependabot/npm_and_yarn/project…
ewelinagr Mar 28, 2024
15521c5
Bump @adobe/css-tools from 4.3.1 to 4.3.3 in /projects/mercury
dependabot[bot] Mar 28, 2024
9372b20
Bump undici from 5.28.1 to 5.28.3 in /projects/mercury
dependabot[bot] Mar 28, 2024
4d67a97
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /projects/mercury
dependabot[bot] Mar 28, 2024
a5a4b6e
Bump express from 4.18.2 to 4.19.2 in /projects/mercury
dependabot[bot] Mar 28, 2024
bb9cd32
Merge pull request #1513 from thehyve/dependabot/npm_and_yarn/project…
ewelinagr Mar 28, 2024
d8851c9
Merge pull request #1506 from thehyve/dependabot/npm_and_yarn/project…
ewelinagr Mar 28, 2024
7b4fc62
Merge pull request #1511 from thehyve/dependabot/npm_and_yarn/project…
ewelinagr Mar 28, 2024
f7c1b4b
Merge pull request #1507 from thehyve/dependabot/npm_and_yarn/project…
ewelinagr Mar 28, 2024
48f50f0
Change the way of displaying boolean metadata values.
ewelinagr Mar 29, 2024
45fed91
Merge pull request #1512 from thehyve/FAIRSPC-49-ui-padding
ewelinagr Mar 29, 2024
ca64b69
Added Github Actions workflows to package, push and deploy Helm Chart
tgreenwood Mar 20, 2024
b81c477
Removed Travis scripts
tgreenwood Mar 29, 2024
89c6149
Added deps update before helm package command
tgreenwood Apr 2, 2024
2d469b8
Added a step to create namespace if it does not exist
tgreenwood Apr 2, 2024
e9341ff
Updated documentation according to the new cicd pipeline and the new …
tgreenwood Apr 2, 2024
4794ba6
Added quotes for consistency
tgreenwood Apr 2, 2024
1818767
Fixed versioning for snapshot release type
tgreenwood Apr 2, 2024
81ca8be
Changed user to repository_owner and tuned version calculating
tgreenwood Apr 3, 2024
e3f896b
Changed user to repository_owner and tuned version calculating
tgreenwood Apr 3, 2024
5ef16bf
updated kubectl version in doc
tgreenwood Apr 3, 2024
6856c7e
Update README.adoc
tgreenwood Apr 3, 2024
729bbb5
updated local deployment version in doc
tgreenwood Apr 3, 2024
0db166c
Merge pull request #1515 from thehyve/devops/FAIRSPC-23_deployment
tgreenwood Apr 3, 2024
bcd0f0c
fixed workflow input for helm jobs
tgreenwood Apr 3, 2024
81d13a9
Merge pull request #1516 from thehyve/devops/FAIRSPC-23_deployment
tgreenwood Apr 3, 2024
e7dfc8f
Bump undici from 5.28.3 to 5.28.4 in /projects/mercury
dependabot[bot] Apr 4, 2024
666f056
Merge pull request #1518 from thehyve/dependabot/npm_and_yarn/project…
ewelinagr Apr 5, 2024
93add78
Improve boolean icon rendering.
ewelinagr Apr 2, 2024
b7314b7
fixed workflow input for snyk
tgreenwood Apr 4, 2024
b088a04
Merge pull request #1514 from thehyve/FAIRSPC-48-boolean-toggle
ewelinagr Apr 8, 2024
5f77b2c
Add configurable application menu icons.
ewelinagr Apr 12, 2024
141e2e1
Merge pull request #1517 from thehyve/snyk_test
tgreenwood Apr 12, 2024
6984e6d
Add tests for icons rendering.
ewelinagr Apr 12, 2024
79e51c7
Update documentation.
ewelinagr Apr 15, 2024
ec7ad3f
Update K8s and helm setup for icon config.
ewelinagr Apr 15, 2024
8a0d431
Fix passing icons with --set-file helm option.
ewelinagr Apr 17, 2024
383d5f6
Fix spotless issues.
ewelinagr Apr 17, 2024
f0bab73
Add icon and metadata source controllers improvements.
ewelinagr Apr 23, 2024
d76f0ab
Enable svg icon caching.
ewelinagr Apr 24, 2024
51e5cd1
Move icon resource logic to a new service.
ewelinagr Apr 24, 2024
796207e
Remove code for special decoding of webdav response.
ewelinagr Apr 24, 2024
9e0d1d0
Merge pull request #1520 from thehyve/fix-codeql
ewelinagr Apr 24, 2024
0de8142
Merge pull request #1519 from thehyve/FAIRSPC-50-icons-config
ewelinagr May 1, 2024
4c37849
FAIRSPC-69: fixed the Fuseki SPARQL endpoint which stopped working af…
tgreenwood May 22, 2024
52345b1
Fix numeric facet slider tooltip.
ewelinagr May 23, 2024
099be2f
Display placeholder value for slider tooltip in numeric facet.
ewelinagr May 23, 2024
aaaf771
Merge pull request #1522 from thehyve/bugfix/FAIRSPC-69
tgreenwood May 23, 2024
1a30c41
Merge pull request #1523 from thehyve/FAIRSPC-9_fix-numeric-faced-slider
ewelinagr May 27, 2024
70357bd
FAIRSPC-68: fixed issue for date filter agains Jena db
tgreenwood May 23, 2024
12f6de5
Merge pull request #1524 from thehyve/bugfix/FAIRSPC-68
tgreenwood May 28, 2024
8b46a68
Bump VERSION to 1.0.0.
ewelinagr Jun 6, 2024
7c8f1b2
Prepare release 1.0.0
ewelinagr Jun 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
212 changes: 212 additions & 0 deletions .github/workflows/build_and_upload_on_push_to_dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# Deployment workflow is supposed to be dependent on this one.

# 1. At the workflow start four jobs are triggered in parallel (generate version, building all services)
# 2. A job to build Docker image with Saturn service is triggered once version generated and Saturn artifacts
# are built and uploaded
# 3. A job to build Docker image with Pluto service and Mercury bundle is triggered once version generated and
# Pluto/Mercury artifacts are built and uploaded

name: Build & Upload Fairspace Docker images

env:
DOCKER_REGISTRY: ghcr.io

on:
push:
branches:
- dev
- release

jobs:
# A job to generate one shared unique version tag per build cycle for all built artifacts
generate-version:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.version.outputs.fairspace_version }}
steps:
- name: Check out repository
uses: actions/checkout@v4

- id: version
name: Generating version tag for artifacts
run: |
# EXTRACT VERSION
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
echo "Building images from the branch: $BRANCH"
VER=$(cat ./VERSION)
echo "Building images of version: $VER"

# DOCKER TAG TO BE ATTACHED (SHARED WITHIN OUTPUT):
VER=$(cat ./VERSION)
if [ $BRANCH != "release" ]
then
VER=$VER-SNAPSHOT
fi

echo "fairspace_version=$VER" >> "$GITHUB_OUTPUT"
echo "Docker tag to be attached to images: $VER"


build-saturn-service:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'

- name: Build with Gradle
run: ./projects/saturn/gradlew build -p ./projects/saturn/

- name: Upload generated artifacts for further processing
uses: actions/upload-artifact@v4
with:
name: saturn-build
path: ./projects/saturn/build/distributions/*.tar


build-mercury-fe-bundle:
needs: generate-version
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Set deployment version
env:
VERSION: ${{needs.generate-version.outputs.output1}}
run: |
echo "$VERSION"
sed -i "s/0.0.0-RELEASEVERSION/${{env.VERSION}}/g" projects/mercury/package.json

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install`
dir: ./projects/mercury/

- name: Build Mercury bundle
uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build`
dir: ./projects/mercury/

# to be used building an image which includes artifacts of both Pluto and Mercury
- name: Upload generated artifacts for further processing
uses: actions/upload-artifact@v4
with:
name: mercury-build
path: ./projects/mercury/build/

- name: Run Mercury tests
uses: borales/actions-yarn@v4
with:
cmd: test # will run `yarn test`
dir: ./projects/mercury/

build-pluto-service:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'

- name: Build with Gradle
run: ./projects/pluto/gradlew build -p ./projects/pluto/

# to be used building an image which includes artifacts of both Pluto and Mercury
- name: Upload generated artifacts for further processing
uses: actions/upload-artifact@v4
with:
name: pluto-build
path: ./projects/pluto/build/distributions/*.tar

# Pluto .tar file and Mercury bundle run together in one docker container
build-and-upload-docker-image-with-pluto-and-mercury:
needs: [generate-version, build-mercury-fe-bundle, build-pluto-service]
runs-on: ubuntu-latest
steps:
- name: Check out repository # To get Pluto Dockerfile
uses: actions/checkout@v4

- name: Download Mercury artifacts
uses: actions/download-artifact@v4
with:
name: mercury-build
path: ./projects/pluto/build/mercury

- name: Download Pluto artifacts
uses: actions/download-artifact@v4
with:
name: pluto-build
path: ./projects/pluto/build/distributions/

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

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/pluto

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./projects/pluto/
push: true
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/pluto:${{needs.generate-version.outputs.output1}}
labels: ${{ steps.meta.outputs.labels }}


build-and-upload-docker-image-for-saturn:
needs: [generate-version, build-saturn-service]
runs-on: ubuntu-latest
steps:
- name: Check out repository # To get Saturn Dockerfile
uses: actions/checkout@v4

- name: Download Saturn artifacts
uses: actions/download-artifact@v4
with:
name: saturn-build
path: ./projects/saturn/build/distributions/

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/saturn

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./projects/saturn/
push: true
tags: ${{ env.DOCKER_REGISTRY }}/${{ github.repository }}/saturn:${{needs.generate-version.outputs.output1}}
labels: ${{ steps.meta.outputs.labels }}
83 changes: 83 additions & 0 deletions .github/workflows/build_on_pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# This workflow is triggered on any PR's changes

name: PR - Build Fairspace

on:
pull_request:

jobs:
build-saturn:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Log details
run: |
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
echo "Triggered on branch: $BRANCH"

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- name: Build with Gradle
run: ./projects/saturn/gradlew build -p ./projects/saturn/


build-pluto:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Log details
run: |
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
echo "Triggered on branch: $BRANCH"

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- name: Build with Gradle
run: ./projects/pluto/gradlew build -p ./projects/pluto/


build-mercury:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Log details
run: |
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
echo "Triggered on branch: $BRANCH"

- name: Install FE dependencies
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install`
dir: ./projects/mercury/

- name: Build FE bundle
uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build`
dir: ./projects/mercury/

- name: Run FE tests
uses: borales/actions-yarn@v4
with:
cmd: test # will run `yarn test`
dir: ./projects/mercury/
Loading
Loading