Skip to content

Commit d30a645

Browse files
committed
Enabled authenticated JDK download
1 parent 90b700c commit d30a645

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎.github/workflows/publish-kafka-docker.yml‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,8 @@ jobs:
9797
uses: docker/build-push-action@v7
9898
with:
9999
context: docker/kafka
100-
# Enable these together when selecting an alternate JDK release:
101-
# secrets: |
102-
# JAVA_DOWNLOAD_APIKEY=${{ secrets.JAVA_DOWNLOAD_APIKEY }}
103-
# Add these overrides under build-args:
104-
# java_version=21
105-
# java_download_base_url=${{ secrets.JAVA_DOWNLOAD_BASE_URL }}
106-
# java_download_version=21.0.13.1
100+
secrets: |
101+
JAVA_DOWNLOAD_APIKEY=${{ secrets.JAVA_DOWNLOAD_APIKEY }}
107102
platforms: linux/amd64,linux/arm64
108103
push: true
109104
tags: ${{ steps.meta.outputs.tags }}
@@ -113,6 +108,8 @@ jobs:
113108
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
114109
BUILT_AT=${{ needs.prepare.outputs.built_at }}
115110
COMMIT=${{ github.sha }}
111+
java_download_base_url=${{ secrets.JAVA_DOWNLOAD_BASE_URL }}/21
112+
java_version=21.0.13.1
116113
117114
build-and-push-jmx-agent-image:
118115
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)