Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] gh package snapshots... #5596

Merged
merged 2 commits into from
Jan 8, 2025
Merged
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
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') }}
duncdrum marked this conversation as resolved.
Show resolved Hide resolved
restore-keys: deploy-${{ runner.os }}-maven
duncdrum marked this conversation as resolved.
Show resolved Hide resolved
- 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>
duncdrum marked this conversation as resolved.
Show resolved Hide resolved
<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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed as there are no plugins that we publish.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@duncdrum was this needed for snapshots of the sub-projects to be published to the registry?

<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>
duncdrum marked this conversation as resolved.
Show resolved Hide resolved
<name>GitHub Registry for Snapshots</name>
duncdrum marked this conversation as resolved.
Show resolved Hide resolved
<url>https://maven.pkg.github.com/eXist-db/exist</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
Expand Down
Loading