Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: CI

on:
push:
branches:
- master
- '[0-9]+.[0-9]+.x' # Patch branches like 2.10.x, 2.9.x
pull_request:
branches:
- master
- '[0-9]+.[0-9]+.x'
schedule:
# Nightly build on master (same as Jenkins: H H(17-19) * * *)
- cron: '0 18 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
MAVEN_OPTS: '-Xmx4G -Xms1G -XX:+ClassUnloadingWithConcurrentMark -Djava.security.egd=file:/dev/./urandom'
MAVEN_CLI_OPTS: '-B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'

jobs:
full-build:
runs-on: ubuntu-latest
timeout-minutes: 180
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
df -h

- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Configure Maven settings
uses: s4u/maven-settings-action@v3.0.0
with:
servers: |
[{
"id": "codice",
"username": "${{ github.actor }}",
"password": "${{ secrets.READ_PACKAGES }}"
},
{
"id": "connexta",
"username": "${{ github.actor }}",
"password": "${{ secrets.READ_PACKAGES }}"
},{
"id": "alexabird",
"username": "${{ github.actor }}",
"password": "${{ secrets.READ_PACKAGES }}"
}]

- name: Full build
run: mvn clean install $MAVEN_CLI_OPTS

# Deploy artifacts (master and patch branches only, in production)
deploy:
needs: [full-build]
if: |
always() &&
github.event_name != 'pull_request' &&
(github.ref == 'refs/heads/master' || contains(github.ref, '.x')) &&
needs.full-build.result == 'success'
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Deploy
run: |
mvn deploy $MAVEN_CLI_OPTS \
-DskipStatic=true \
-DskipTests=true \
-DretryFailedDeploymentCount=10 \
-Dreleases.repository.url=https://maven.pkg.github.com/codice/ddf-ui \
-Dsnapshots.repository.url=https://maven.pkg.github.com/codice/ddf-ui
134 changes: 0 additions & 134 deletions Jenkinsfile

This file was deleted.

19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

Welcome to ddf-ui, the home of Intrigue.

## Building ddf-ui prereqs
This repository depends on Codice and Connexta artifacts available in their GitHub repository packages.
To pull these artifacts, you will need create a [Personal Access Token (PAT) in GitHub](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)
with `packages:read` permissions, and configure maven's ~/.m2/settings.xml:
```
<servers>
<server>
<id>codice</id>
<username>$USERNAME</username>
<password>$TOKEN</password>
</server>
<server>
<id>connexta</id>
<username>$USERNAME</username>
<password>$TOKEN</password>
</server>
</servers>
```

## Installing in DDF

Note: Change `<VERSION>` to the desired or most recent version of ddf-ui.
Expand Down
28 changes: 26 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,34 @@
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>alexabird</id>
<name>Codice Repository</name>
<url>https://maven.pkg.github.com/alexabird/ddf</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>codice</id>
<name>Codice Repository</name>
<url>https://artifacts.codice.org/content/groups/public/</url>
<url>https://maven.pkg.github.com/codice/*</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>connexta</id>
<name>Connexta Repository</name>
<url>https://maven.pkg.github.com/connexta/*</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>osgeo</id>
<name>OSGeo Release Repository</name>
<url>https://repo.osgeo.org/repository/release/</url>
</repository>
</repositories>
<pluginRepositories>
Expand All @@ -409,7 +433,7 @@
<pluginRepository>
<id>codice</id>
<name>Codice Repository</name>
<url>https://artifacts.codice.org/content/groups/public/</url>
<url>https://maven.pkg.github.com/codice/*</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
Expand Down
46 changes: 0 additions & 46 deletions ui-backend/intrigue-ui-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,52 +125,6 @@
<artifactId>kotlin-osgi-bundle</artifactId>
<version>${kotlin-osgi.version}</version>
</dependency>
<dependency>
<groupId>org.codice.thirdparty</groupId>
<artifactId>javalin</artifactId>
<version>${javalin.thirdparty.bundle.version}</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</exclusion>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
</exclusion>
<exclusion>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-server</artifactId>
</exclusion>
<exclusion>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-servlet</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.connexta</groupId>
<artifactId>ddf-rpc-api</artifactId>
<version>${ddf-jsonrpc.version}</version>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</exclusion>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
</exclusion>
<exclusion>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-server</artifactId>
</exclusion>
<exclusion>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-servlet</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.connexta.jsonrpc</groupId>
<artifactId>jsonrpc-features</artifactId>
Expand Down
Loading