Skip to content

Commit

Permalink
Remove root pom.xml and run deploy on github actions with Make deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
groldan committed Aug 5, 2024
1 parent 7972cd3 commit bbf3727
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 48 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`
41 changes: 0 additions & 41 deletions pom.xml

This file was deleted.

0 comments on commit bbf3727

Please sign in to comment.