From bbf37278ccb8a8919f639445a02545dbbcbf6b23 Mon Sep 17 00:00:00 2001 From: Gabriel Roldan Date: Sun, 4 Aug 2024 23:19:38 -0300 Subject: [PATCH] Remove root pom.xml and run deploy on github actions with Make deploy --- .github/workflows/publish.yaml | 8 +------ Makefile | 16 +++++++++++++ README.md | 20 +++++++++++++++++ pom.xml | 41 ---------------------------------- 4 files changed, 37 insertions(+), 48 deletions(-) create mode 100644 Makefile create mode 100644 README.md delete mode 100644 pom.xml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2de8d7c..2729452 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -27,13 +27,7 @@ jobs: - name: Deploy to github packages maven repo run: | - ./mvnw deploy -f geoserver/src/pom.xml --batch-mode -DskipTests -ntp -fae \ - -PallExtensions,communityRelease \ - -Dsort.skip=true -Dspotless.apply.skip=true \ - -DretryFailedDeploymentCount=10 \ - -DallowIncompleteProjects=true \ - -DaltDeploymentRepository="github::https://maven.pkg.github.com/camptocamp/geoserver-cloud-geoserver" \ - -Dmaven.resolver.transport=wagon + make deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..30422ad --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +.PHONY: install +install: + ./mvnw install -f geoserver/src/pom.xml --batch-mode -DskipTests -ntp -fae \ + -PallExtensions,communityRelease \ + -Dsort.skip=true -Dspotless.apply.skip=true + +.PHONY: deploy +deploy: + ./mvnw deploy -f geoserver/src/pom.xml --batch-mode -DskipTests -ntp -fae \ + -PallExtensions,communityRelease \ + -Dsort.skip=true -Dspotless.apply.skip=true \ + -DretryFailedDeploymentCount=10 \ + -DallowIncompleteProjects=true \ + -DaltDeploymentRepository='github::https://maven.pkg.github.com/camptocamp/geoserver-cloud-geoserver' \ + -Dmaven.resolver.transport=wagon + diff --git a/README.md b/README.md new file mode 100644 index 0000000..5a8a22c --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# GeoServer Cloud GeoServer + +This is the deployment repository for the customized GeoServer version used by GeoSever Cloud + +## Install and deploy + +On a local machine, before pushing to this github repository, in order to test the artifacts, run + + +``` +make install +``` + +The CI build runs instead + +``` +make deploy +``` + +> `install` does not need to be run before `deploy` diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 8509d6f..0000000 --- a/pom.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - 4.0.0 - org.geoserver.cloud - gs-upstream - 2.25.3.0-SNAPSHOT - pom - GeoServer upstream dependencies - - - github - GitHub Packages - https://maven.pkg.github.com/camptocamp/geoserver-cloud-geoserver - - - - - geoserver/src - geoserver/src/community/jdbcconfig - geoserver/src/community/jdbcstore - geoserver/src/community/pgraster - geoserver/src/community/datadir-catalog-loader - - geoserver/src/extension/authkey - geoserver/src/extension/web-resource - geoserver/src/extension/css - geoserver/src/extension/feature-pregeneralized - geoserver/src/extension/gwc-s3 - geoserver/src/extension/mbstyle - geoserver/src/extension/vectortiles - geoserver/src/extension/wps - geoserver/src/extension/importer - geoserver/src/community/flatgeobuf - geoserver/src/community/graticule - geoserver/src/community/gwc-azure-blob - geoserver/src/community/cog - geoserver/src/community/security - geoserver/src/community/security/oauth2 - geoserver/src/community/security/oauth2-geonode - -