-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (36 loc) · 1.45 KB
/
geonetwork-docker.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
name: CI
on:
push:
branches:
- war-overlay
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: "Checking out"
uses: actions/checkout@v4
with:
submodules: recursive
- name: "Setup java JDK"
uses: actions/[email protected]
with:
java-version: 11
distribution: temurin
java-package: jdk
cache: maven
- name: "Setting image tag"
id: version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: "Build docker container"
run: |
mvn clean install -DskipTests -Denforcer.skip -pl core-geonentwork
mvn install:install-file -Dfile=core-geonetwork/web/target/geonetwork.war -DgroupId=org.geonetwork-opensource -DartifactId=web-app -Dversion=4.4.6-0 -Dpackaging=war
mvn clean install -DskipTests -Denforcer.skip -pl web
mvn clean install -DskipTests -Denforcer.skip -pl release
cd release/target/docker/
docker build . -t docker.pkg.github.com/geoadmin/geocat/gn-with-swiss-overlay:${{ steps.version.outputs.VERSION }}-${{ github.run_number }}
- name: "Login to docker.pkg.github.com"
run: docker login -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }} docker.pkg.github.com
- name: "Push to github packages"
run: docker push docker.pkg.github.com/geoadmin/geocat/gn-with-swiss-overlay:${{ steps.version.outputs.VERSION }}-${{ github.run_number }}