Skip to content

Commit 0115824

Browse files
committed
feat: Add geOrchestra customizations
1 parent 7712567 commit 0115824

File tree

185 files changed

+11355
-440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+11355
-440
lines changed

.backportrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"autoMerge": true
3+
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/backport.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,25 @@ on:
66
- labeled
77

88
permissions:
9-
contents: read
9+
contents: write # so it can comment
10+
pull-requests: write # so it can create pull requests
1011

1112
jobs:
1213
backport:
13-
permissions:
14-
contents: write
15-
pull-requests: write
16-
issues: write
14+
name: Backport PR
15+
if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport'))
1716
runs-on: ubuntu-latest
18-
name: Backport
1917
steps:
20-
- name: Backport Bot
21-
id: backport
22-
if: github.event.pull_request.merged && ( ( github.event.action == 'closed' && contains( join( github.event.pull_request.labels.*.name ), 'backport') ) || contains( github.event.label.name, 'backport' ) )
23-
uses: m-kuhn/backport@v1.2.7
18+
- name: Backport Action
19+
uses: sqren/backport-github-action@v9.3.0
2420
with:
25-
github_token: ${{ secrets.GH_TOKEN_BOT }}
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
auto_backport_label_prefix: backport-to-
23+
24+
- name: Info log
25+
if: ${{ success() }}
26+
run: cat ~/.backport/backport.info.log
27+
28+
- name: Debug log
29+
if: ${{ failure() }}
30+
run: cat ~/.backport/backport.debug.log

.github/workflows/build-java11.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- georchestra-gn4.4.x
7+
tags:
8+
- '*'
9+
pull_request:
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"
15+
name: "📦 Build, test and publish on Docker Hub"
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 40
18+
steps:
19+
- name: "Checking out"
20+
uses: actions/checkout@v2.4.0
21+
with:
22+
submodules: 'recursive'
23+
24+
- name: "Setting up Java"
25+
uses: actions/setup-java@v2
26+
with:
27+
java-version: '11'
28+
distribution: 'adopt'
29+
30+
- name: "Installing GeoNetwork"
31+
run: mvn clean install -DskipTests -Pdatahub-integration
32+
33+
- name: "run tests"
34+
run: mvn verify -Pit
35+
36+
- name: "publish the webapp as artifact"
37+
if: github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/georchestra-gn4.4.x' && github.event_name != 'pull_request'
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: geonetwork.war
41+
path: web/target/geonetwork.war
42+
43+
- name: Getting image tag
44+
if: github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]'
45+
id: version
46+
run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT
47+
48+
- name: "🐳 Build GeoNetwork docker image"
49+
if: github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]'
50+
run: |
51+
cd web
52+
mvn package -Pdocker,datahub-integration -DdockerImageName=georchestra/geonetwork -DdockerImageTags=${{ steps.version.outputs.VERSION }},latest -DskipTests -ntp
53+
54+
- name: "Logging in docker.io"
55+
uses: azure/docker-login@v2
56+
if: github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request'
57+
with:
58+
username: '${{ secrets.DOCKER_HUB_USERNAME }}'
59+
password: '${{ secrets.DOCKER_HUB_PASSWORD }}'
60+
61+
- name: "Pushing latest to docker.io"
62+
if: github.ref == 'refs/heads/master' && github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request'
63+
run: |
64+
docker push georchestra/geonetwork:latest
65+
66+
- name: "Pushing release branch to docker.io"
67+
if: (contains(github.ref, 'refs/tags/') || endsWith(github.ref, '.x')) && github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request'
68+
run: |
69+
docker push georchestra/geonetwork:${{ steps.version.outputs.VERSION }}
70+
71+
- name: "Update Docker Hub Description"
72+
if: github.ref == 'refs/heads/master' && github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request'
73+
uses: peter-evans/dockerhub-description@v3
74+
with:
75+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
76+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
77+
repository: georchestra/geonetwork
78+
readme-filepath: ./geonetwork/DOCKER_HUB.md
79+
short-description: 'Geonetwork module for the geOrchestra SDI'

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 87 deletions
This file was deleted.

.github/workflows/docs.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/linux.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)