-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add GitHub Actions for testing and publishing
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 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,22 @@ | ||
name: Check | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- devel | ||
|
||
jobs: | ||
check: | ||
uses: wetransform/gha-workflows/.github/workflows/gradle-library-check.yml@master | ||
with: | ||
java-version: 17 | ||
|
||
docker: | ||
uses: wetransform/gha-workflows/.github/workflows/gradle-service-check.yml@master | ||
with: | ||
java-version: 17 | ||
image-tag: wetransform/hale-cli:latest | ||
# don't run tests since this is already done in check | ||
gradle-tasks: clean dockerTagLatest | ||
expect-tests: false |
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,35 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- devel | ||
- master | ||
workflow_dispatch: {} | ||
|
||
concurrency: | ||
# only run one publishing at a time to avoid conflicts in artifactory | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
artifacts: | ||
uses: wetransform/gha-workflows/.github/workflows/gradle-library.yml@master | ||
with: | ||
java-version: 17 | ||
gradle-tasks: clean check distZip buildDeb publish | ||
upload-artifact-path: build/distributions | ||
upload-artifact-name: distributions | ||
secrets: | ||
SLACK_NOTIFICATIONS_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} | ||
|
||
docker: | ||
# FIXME both master and devel will push latest - only one should | ||
uses: wetransform/gha-workflows/.github/workflows/gradle-service-publish.yml@master | ||
with: | ||
java-version: 17 | ||
image-tag: wetransform/hale-cli:latest | ||
secrets: | ||
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }} | ||
SLACK_NOTIFICATIONS_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} |