Skip to content

Commit

Permalink
#14 parse special characters from image tag (#15)
Browse files Browse the repository at this point in the history
* #14 parse image tag inputs

* remove shell
  • Loading branch information
kernelsam authored Jan 18, 2024
1 parent 9b20874 commit c8ace8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ runs:
password: ${{ inputs.password }}
- name: Docker build images
run: |
CLEANED_TAG=$(echo ${{ inputs.image-tag }} | tr -d "/#" )
docker buildx build \
--platform ${{ inputs.platforms }} \
--tag ${{ inputs.registry-server }}/${{ inputs.image-repository }}:${{ inputs.image-tag }} \
--tag ${{ inputs.registry-server }}/${{ inputs.image-repository }}:$CLEANED_TAG \
--tag ${{ inputs.registry-server }}/${{ inputs.image-repository }}:latest \
${{ inputs.build-options }} \
${{ inputs.context }}
Expand Down

0 comments on commit c8ace8f

Please sign in to comment.