-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A new job has been added to build JSS with Maven and publish the artifacts to GitHub Maven registry. Currently the native and symkey modules have to be disabled due to a build issue. The group ID and artifact ID have been renamed to follow the more commonly used pattern.
- Loading branch information
Showing
7 changed files
with
77 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,22 +15,59 @@ jobs: | |
secrets: inherit | ||
if: vars.REGISTRY != '' | ||
|
||
build: | ||
name: Waiting for build | ||
publish-maven: | ||
name: Publishing Maven artifacts | ||
needs: init | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for build | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Check settings.xml | ||
run: | | ||
cat ~/.m2/settings.xml | ||
- name: Update pom.xml | ||
run: | | ||
sed -i \ | ||
-e "s/OWNER/$NAMESPACE/g" \ | ||
-e "s/REPOSITORY/jss/g" \ | ||
pom.xml | ||
cat pom.xml | ||
- name: Publish Maven artifacts | ||
run: | | ||
# TODO: Fix build issue in native and symkey modules. | ||
mvn \ | ||
--batch-mode \ | ||
--update-snapshots \ | ||
-pl '!native,!symkey' \ | ||
deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
wait-for-images: | ||
name: Waiting for container images | ||
needs: init | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for container images | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: 'Building JSS' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 30 | ||
|
||
publish: | ||
name: Publishing JSS | ||
needs: [init, build] | ||
publish-images: | ||
name: Publishing container images | ||
needs: [init, wait-for-images] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log in to GitHub Container Registry | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters