Skip to content

Commit

Permalink
fix(gha): fix gha for single tag
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker committed Nov 21, 2023
1 parent d9de854 commit 17c5a2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/docker-custom-build-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,17 @@ runs:
push: false
cache-from: type=registry,ref=${{ steps.docker_meta.outputs.tags }}
cache-to: type=inline
- name: Single Tag
if: ${{ inputs.publish != 'true' }}
shell: bash
run: |
echo "SINGLE_TAG=$(echo "${{ steps.docker_meta.outputs.tags }}" | sed -E 's/(.*)[ \n]+(.*)/\1/')" >> $GITHUB_OUTPUT
id: single_tag
- name: Upload image locally for testing (if not publishing)
uses: ishworkh/docker-image-artifact-upload@v1
if: ${{ inputs.publish != 'true' }}
with:
image: ${{ steps.docker_meta.outputs.tags }}
image: ${{ steps.single_tag.outputs.SINGLE_TAG }}

# Code for building multi-platform images and pushing to Docker Hub.
- name: Set up QEMU
Expand Down

0 comments on commit 17c5a2c

Please sign in to comment.