Skip to content

Commit

Permalink
Merge pull request #5596 from duncdrum/feat-gh-packages
Browse files Browse the repository at this point in the history
[feature] gh package snapshots...
  • Loading branch information
dizzzz authored Jan 8, 2025
2 parents 44a69e4 + 53aef8e commit 7dd2fda
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Deploy
name: Publish Container
on: [push, pull_request]
jobs:
build:
name: Build and Test Images
name: Test and Publish Container Images
runs-on: ubuntu-latest
# NOTE (DP): Publish on develop and master, test on PRs against these
# TODO(DP) Reinstate CRONed release builds to update stock apps regularly
Expand Down Expand Up @@ -77,4 +77,4 @@ jobs:
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# run: mvn -q -Ddocker.tag=experimental -Ddocker.username=$DOCKER_USERNAME -Ddocker.password=$DOCKER_PASSWORD docker:build docker:push
# working-directory: ./exist-docker

30 changes: 30 additions & 0 deletions .github/workflows/ci-snapshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish Snaphots to Github Packages

on:
push:
branches:
- develop
workflow_dispatch: # Allow manual triggering

jobs:
publish-snapshots:
name: Deploy Snapshots
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: liberica
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: deploy-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: deploy-${{ runner.os }}-maven
- name: Deploy SNAPSHOT maven artefacts
run: mvn -V -B -q -DskipTests -Ddependency-check.skip=true -P !mac-dmg-on-unix,!installer,!concurrency-stress-tests,!micro-benchmarks,skip-build-dist-archives clean deploy
28 changes: 25 additions & 3 deletions exist-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,17 @@
</reporting>

<repositories>
<repository>
<id>github</id>
<name>GitHub Registry for Snapshots</name>
<url>https://maven.pkg.github.com/eXist-db/exist</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>exist-db-snapshots</id>
<name>Evolved Binary - eXist-db Snapshots</name>
Expand Down Expand Up @@ -1228,13 +1239,24 @@
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>github</id>
<name>GitHub Registry for Snapshots</name>
<url>https://maven.pkg.github.com/eXist-db/exist</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

<distributionManagement>
<snapshotRepository>
<id>exist-db-snapshots</id>
<name>Evolved Binary - eXist-db Snapshots</name>
<url>https://repo.evolvedbinary.com/repository/exist-db-snapshots/</url>
<id>github</id>
<name>GitHub Registry for Snapshots</name>
<url>https://maven.pkg.github.com/eXist-db/exist</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
Expand Down

0 comments on commit 7dd2fda

Please sign in to comment.