-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from camunda-community-hub/docker
feat: Build Docker image using Jib
- Loading branch information
Showing
23 changed files
with
246 additions
and
1,250 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,7 @@ | ||
# About: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners | ||
# | ||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, | ||
# @global-owner1 and @global-owner2 will be requested for | ||
# review when someone opens a pull request. | ||
* @saig0 |
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,14 @@ | ||
## Description | ||
|
||
<!-- Please explain the changes you made here. --> | ||
|
||
* | ||
|
||
## Related issues | ||
|
||
<!-- | ||
Which issues are closed by this PR or are related. | ||
If you have no issue then create one. This helps to track it and get the confirmation that the behavior is not expected. | ||
--> | ||
|
||
closes # |
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,25 @@ | ||
name: Build project with Maven | ||
on: | ||
pull_request: | ||
schedule: | ||
- cron: '2 2 * * 1-5' # run nightly master builds on weekdays | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@f1d3225b5376a0791fdee5a0e8eac5289355e43a # pin@v2 | ||
- name: Java setup | ||
uses: actions/setup-java@e54a62b3df9364d4b4c1c29c7225e57fe605d7dd # pin@v1 | ||
with: | ||
java-version: 17 | ||
- name: Cache | ||
uses: actions/cache@99d99cd262b87f5f8671407a1e5c1ddfa36ad5ba # pin@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Run Maven | ||
run: mvn -B clean 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,56 @@ | ||
# If this workflow is triggered by a push to master, it | ||
# deploys a SNAPSHOT | ||
# If this workflow is triggered by publishing a Release, it | ||
# deploys a RELEASE with the selected version | ||
# updates the project version by incrementing the patch version | ||
# commits the version update change to the repository's default branch. | ||
name: Deploy artifacts with Maven | ||
on: | ||
push: | ||
branches: [ master ] | ||
release: | ||
types: [ published ] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@f1d3225b5376a0791fdee5a0e8eac5289355e43a # pin@v2 | ||
- name: Cache | ||
uses: actions/cache@0781355a23dac32fd3bac414512f4b903437991a # pin@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up Java environment | ||
uses: actions/setup-java@e54a62b3df9364d4b4c1c29c7225e57fe605d7dd # pin@v1 | ||
with: | ||
java-version: 17 | ||
gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_SEC }} | ||
gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE | ||
- name: Login to Docker | ||
run: | | ||
# new login with new container registry url and PAT | ||
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin | ||
- name: Deploy SNAPSHOT / Release | ||
uses: camunda-community-hub/community-action-maven-release@a9e964bf56978eef9bca81551cecceebb246a8e5 # pin@v1 | ||
with: | ||
release-version: ${{ github.event.release.tag_name }} | ||
release-profile: community-action-maven-release | ||
nexus-usr: ${{ secrets.NEXUS_USR }} | ||
nexus-psw: ${{ secrets.NEXUS_PSW }} | ||
maven-usr: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_USR }} | ||
maven-psw: ${{ secrets.MAVEN_CENTRAL_DEPLOYMENT_PSW }} | ||
maven-gpg-passphrase: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_PASSPHRASE }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
id: release | ||
- if: github.event.release | ||
name: Attach artifacts to GitHub Release (Release only) | ||
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # pin@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ${{ steps.release.outputs.artifacts_archive_path }} | ||
asset_name: ${{ steps.release.outputs.artifacts_archive_path }} | ||
asset_content_type: application/zip |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.