Skip to content

Commit

Permalink
Publish geoserver packages to Github maven registry
Browse files Browse the repository at this point in the history
  • Loading branch information
groldan committed Dec 27, 2023
1 parent e72107e commit 1a1119a
Show file tree
Hide file tree
Showing 8 changed files with 637 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Builds and pushes docker images on main and tags

name: Build on any branch
on:
push:
branches:
- 'main'
tags:
- '*'
paths:
- "Makefile"
- "pom.xml"
- ".github/workflows/build.yaml"
- "geoserver/**"

jobs:
build:
name: Build and publish to github packages
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'

- name: Build customized GeoServer version
run: |
./mvnw clean install -DskipTests -ntp -T4 -U
- name: Publish package
run: |
./mvnw --batch-mode deploy -DskipTests -ntp \
-DaltDeploymentRepository=github::https://maven.pkg.github.com/camptocamp/geoserver-cloud-geoserver
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Remove project jars from cached repository
run: |
rm -rf ~/.m2/repository/org/geoserver
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
target
!.mvn/wrapper/maven-wrapper.properties
.mvn/wrapper

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
/build/

### artifact created by test runs, under src/main/webapp on some projects
### TODO: get rid of them instead by fixing the tests to use in-memory or tmp folder catalogs
webapp

# https://bugs.openjdk.java.net/browse/JDK-8214300
.attach_pid*

.flattened-pom.xml

docker-compose_datadir*
/.metadata/

.vscode
18 changes: 18 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>geoserver-cloud-geoserver</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
2 changes: 1 addition & 1 deletion geoserver
Submodule geoserver updated 1 files
+2 −2 src/pom.xml
Loading

0 comments on commit 1a1119a

Please sign in to comment.