From 6d29ccb3113b5f692157dac964656a39fddb811d Mon Sep 17 00:00:00 2001 From: fanng Date: Fri, 17 Jan 2025 10:10:23 +0800 Subject: [PATCH] fix credential vending document --- .github/workflows/docker-image.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 43b91d8ac33..3f925617ff9 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -33,7 +33,7 @@ on: required: true type: string latest: - description: 'whether publish the image to docker latest tag, only used for offical release, don't use it for RC' + description: 'Whether to publish the image to the Docker latest tag. This operation is only applicable to official releases and should not be used for Release Candidate (RC) polishing.' required: false type: boolean default: false @@ -89,6 +89,12 @@ jobs: echo "image_name=apache/gravitino-iceberg-rest" >> $GITHUB_ENV fi + if [ "${{ github.event.inputs.latest }}" == "true" ]; then + echo "publish_latest=true" >> $GITHUB_ENV + else + echo "publish_latest=false" >> $GITHUB_ENV + fi + - name: Check publish Docker token run: | if [[ "${secrets_token}" != "${input_token}" ]]; then @@ -120,7 +126,7 @@ jobs: sudo rm -rf /usr/local/lib/android sudo rm -rf /opt/hostedtoolcache/CodeQL - if [[ "${image_type}" == "gravitino" || "${image_type}" == "iceberg-rest-server" || "${{ github.event.inputs.latest }}" == "true" ]]; then + if [[ "${image_type}" == "gravitino" || "${image_type}" == "iceberg-rest-server" || "${publish_latest}" == "true" ]]; then echo "latest" #./dev/docker/build-docker.sh --platform all --type ${image_type} --image ${image_name} --tag ${{ github.event.inputs.version }} --latest else