-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/gradle-publish-2
- Loading branch information
Showing
5 changed files
with
46 additions
and
51 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[bumpversion] | ||
current_version = 1.54.1 | ||
current_version = 1.55.0 |
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 |
---|---|---|
|
@@ -13,6 +13,11 @@ on: | |
required: false | ||
type: string | ||
default: "docker.io" | ||
platforms: | ||
description: "Architectures for the created image (comma separated)" | ||
required: false | ||
default: "linux/amd64,linux/arm64" | ||
type: string | ||
java-distribution: | ||
description: "Java distribution to be installed. (Default is microsoft)" | ||
required: false | ||
|
@@ -105,13 +110,21 @@ jobs: | |
sonar-token: ${{ secrets.sonar-token }} | ||
|
||
build-jib: | ||
name: Build tarball image | ||
name: Build Docker image | ||
runs-on: ubuntu-22.04 | ||
needs: build-and-test | ||
|
||
steps: | ||
- name: Build tarball image | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
- name: Login into docker | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ inputs.docker-registry }} | ||
username: ${{ secrets.docker-username }} | ||
password: ${{ secrets.docker-password }} | ||
|
||
- name: Jib build | ||
id: build-image | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
java-distribution: ${{ inputs.java-distribution }} | ||
java-version: ${{ inputs.java-version }} | ||
|
@@ -120,6 +133,8 @@ jobs: | |
gradle-cache-read-only: true | ||
gradle-refresh-dependencies: ${{ inputs.gradle-refresh-dependencies }} | ||
working-directory: ${{ inputs.working-directory }} | ||
repository: ${{ inputs.docker-registry }}/${{ inputs.docker-publisher }} | ||
platforms: ${{ inputs.platforms }} | ||
|
||
publish: | ||
name: Publish | ||
|
@@ -143,29 +158,11 @@ jobs: | |
gradle-refresh-dependencies: ${{ inputs.gradle-refresh-dependencies }} | ||
working-directory: ${{ inputs.working-directory }} | ||
|
||
publish-jib-image: | ||
name: Publish tarball image | ||
runs-on: ubuntu-22.04 | ||
needs: build-jib | ||
|
||
steps: | ||
- name: Login into docker | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ inputs.docker-registry }} | ||
username: ${{ secrets.docker-username }} | ||
password: ${{ secrets.docker-password }} | ||
- name: Publish tarball image | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
docker-registry: ${{ inputs.docker-registry }} | ||
image-namespace: ${{ inputs.docker-publisher }} | ||
|
||
release: | ||
name: Create Github release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-22.04 | ||
needs: [publish, publish-jib-image] | ||
needs: [publish, build-jib] | ||
|
||
steps: | ||
- name: Release on Github | ||
|
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