Commit 63d354b
committed
ci: wire up GitHub Actions build + JFrog publish via shared reusable workflow
Adds .github/workflows/build-publish.yml (~30 lines) that calls
NrgXnat/xnat-ci-workflows/.github/workflows/gradle-build-publish.yml@v1
for the build → JFrog publish path. No Docker image yet (plugin
distribution image flow is deferred per project plan).
Trigger branches: main, develop, releases/*, github-build
(github-build is the temporary validation branch, to be removed
once the pipeline is verified on this repo)
workflow_dispatch with one boolean input (publish_jfrog) lets manual
runs cherry-pick whether to actually publish.
build.gradle change: add `credentials { ... }` to the XNAT_Artifactory
maven repository so CI's ORG_GRADLE_PROJECT_artifactoryUser/Token env
vars (sourced from org-level GitHub Secrets XNAT_ARTIFACTORY_USER/TOKEN)
authenticate the gradle publish. Local devs can put artifactoryUser/Token
in ~/.gradle/gradle.properties for manual publishes the same way.
Java version is pinned to 8 here because this branch line (XNAT 1.9.2)
still compiles with sourceCompatibility = VERSION_1_8. The
java-upgrade / *java21-rc branches will need their own caller with
java-version: '21' when those lines get wired up.
Verified the reusable workflow's version-detection step picks up
`version "0.9.0-SNAPSHOT"` from build.gradle (no gradle.properties
needed) — see NrgXnat/xnat-ci-workflows commit 40cc407.1 parent 9bcb050 commit 63d354b
2 files changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
| |||
0 commit comments