-
-
Notifications
You must be signed in to change notification settings - Fork 21
71 lines (58 loc) · 2.01 KB
/
georchestra-gn4.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Building georchestra-geonetwork4 artifacts
on:
push:
branches:
- georchestra-gn4-4.0.6-22.0.x-dreal-corse
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: "Checking out"
uses: actions/[email protected]
with:
submodules: 'recursive'
- name: "Checking out geOrchestra (needed for building dependencies)"
uses: actions/[email protected]
with:
repository: "georchestra/georchestra"
path: "georchestra"
ref: "22.0.x"
- name: "Setting up Java"
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: 'maven'
- name: "Installing the geOrchestra root pom"
run: |
mvn install --non-recursive -f georchestra/pom.xml
- name: "Installing testcontainers georchestra module"
run: |
mvn clean install -f georchestra/testcontainers/pom.xml
- name: "Installing georchestra commons module"
run: |
mvn clean install -f georchestra/commons/pom.xml
- name: "Installing security-proxy-spring-integration georchestra module"
run: |
mvn clean install -f georchestra/security-proxy-spring-integration/pom.xml
- name: "Installing GeoNetwork"
run: mvn clean install -DskipTests
- name: "Building the docker image"
working-directory: web/
run: |
mvn clean package docker:build -Pdocker,log4j-logstash,sentry-log4j \
-DdockerImageName=georchestra/geonetwork:4.0.6-dev-dreal-corse -DskipTests
- name: "publish the webapp as artifact"
uses: actions/upload-artifact@v1
with:
name: geonetwork.war
path: web/target/geonetwork.war
- name: "Login onto docker-hub"
uses: docker/login-action@v1
with:
username: '${{ secrets.DOCKER_HUB_USERNAME }}'
password: '${{ secrets.DOCKER_HUB_PASSWORD }}'
- name: "Pushing the image to docker-hub"
run: |
docker push georchestra/geonetwork:4.0.6-dev-dreal-corse