Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,16 +205,16 @@ jobs:
shell: bash
run: .github/scripts/test-adot-javaagent-image.sh "${{ env.TEST_TAG }}" "$VERSION"

- name: Build and push image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
with:
push: true
build-args: "ADOT_JAVA_VERSION=${{ github.event.inputs.version }}"
context: .
platforms: linux/amd64,linux/arm64
tags: |
${{ env.PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
${{ env.PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
# - name: Build and push image
# uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 #v6.18.0
# with:
# push: true
# build-args: "ADOT_JAVA_VERSION=${{ github.event.inputs.version }}"
# context: .
# platforms: linux/amd64,linux/arm64
# tags: |
# ${{ env.PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
# ${{ env.PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}

- name: Build and Publish release with Gradle
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 #v3.5.0
Expand Down
6 changes: 2 additions & 4 deletions version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
val adotVersion = "2.20.0"

allprojects {
version = if (project.hasProperty("release.version")) {
project.property("release.version") as String
} else {
adotVersion
if (!project.hasProperty("release.version")) {
version = adotVersion
}
}
Loading