-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action workflows for PR and publish (#692)
* Add github action workflows for PR and publish * add submodules checkout * add tags * add build args * rectify build args * Update publish-snapshot.yml use list syntax for tags, fix indentation --------- Co-authored-by: JP <jonathan.i.percival@gmail.com>
- Loading branch information
Showing
4 changed files
with
56 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Check PR | ||
on: pull_request | ||
|
||
jobs: | ||
maven: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
- name: Run Checks | ||
run: mvn --batch-mode --no-transfer-progress --update-snapshots verify |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Publish Snapshot | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
maven: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
- name: Publish snapshot | ||
run: mvn --batch-mode -no-transfer-progress --update-snapshots deploy | ||
env: | ||
MAVEN_USERNAME: ${{ vars.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ vars.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
tags: | | ||
cqframework/cqf-ruler:latest | ||
alphora/cqf-ruler:latest | ||
build-args: COMMIT_HASH=${{ env.GITHUB_SHA }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.