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
13 changes: 11 additions & 2 deletions .github/workflows/shared-publish-java-to-docker-versioned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ jobs:
FIRST_TAG=${DOCKER_METADATA_OUTPUT_TAGS%%$'\n'*}
echo "firstTag=$FIRST_TAG" >> $GITHUB_OUTPUT

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3

- name: Lowercase image reference
id: imageRef
run: |
value="$(printf '%s' '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ inputs.append_image_name }}' | tr '[:upper:]' '[:lower:]')"
echo "value=${value}" >> "$GITHUB_OUTPUT"

- name: Build and export to Docker
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
Expand All @@ -215,7 +224,7 @@ jobs:
with:
context: ${{inputs.working_dir}}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ inputs.append_image_name }},push-by-digest=true,push=true
outputs: type=image,name=${{ steps.imageRef.outputs.value }},push-by-digest=true,push=true
build-args: |
JAR_VERSION=${{ steps.version.outputs.new_version }}
IMAGE_VERSION=${{ steps.version.outputs.new_version }}
Expand All @@ -232,7 +241,7 @@ jobs:
env:
DIGEST: ${{ steps.push.outputs.digest }}
TAGS: ${{ steps.meta.outputs.tags }}
SOURCE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}${{ inputs.append_image_name }}
SOURCE: ${{ steps.imageRef.outputs.value }}
run: |
set -euo pipefail
while IFS= read -r tag; do
Expand Down
11 changes: 9 additions & 2 deletions actions/shared_publish_to_docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ runs:
FIRST_TAG=${DOCKER_METADATA_OUTPUT_TAGS%%$'\n'*}
echo "firstTag=$FIRST_TAG" >> $GITHUB_OUTPUT

- name: Lowercase image reference
id: imageRef
shell: bash
run: |
value="$(printf '%s' '${{ inputs.docker_registry }}/${{ inputs.docker_image_name }}' | tr '[:upper:]' '[:lower:]')"
echo "value=${value}" >> "$GITHUB_OUTPUT"

- name: Build and export to Docker
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
Expand Down Expand Up @@ -99,7 +106,7 @@ runs:
context: ${{ inputs.docker_context }}
file: ${{ inputs.docker_file }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ inputs.docker_registry }}/${{ inputs.docker_image_name }},push-by-digest=true,push=true
outputs: type=image,name=${{ steps.imageRef.outputs.value }},push-by-digest=true,push=true
build-args: |
JAR_VERSION=${{ inputs.new_version }}
IMAGE_VERSION=${{ inputs.new_version }}
Expand All @@ -116,7 +123,7 @@ runs:
env:
DIGEST: ${{ steps.push.outputs.digest }}
TAGS: ${{ steps.meta.outputs.tags }}
SOURCE: ${{ inputs.docker_registry }}/${{ inputs.docker_image_name }}
SOURCE: ${{ steps.imageRef.outputs.value }}
run: |
set -euo pipefail
while IFS= read -r tag; do
Expand Down
Loading