mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-21 21:44:44 +03:00
Lowecase repo name for dockerhub
This commit is contained in:
1 parent
3317f94c5b
commit
006c2abed0
1 file changed
+5
-4
@@ -53,18 +53,19 @@ jobs:
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" && -n "${{ inputs.tag }}" ]]; then
|
||||
# Manual dispatch with custom tag
|
||||
TAG="${{ inputs.tag }}"
|
||||
TAGS="docker.io/${REPO_LOWER}:${TAG},ghcr.io/${{ env.REPO_NAME }}:${TAG}"
|
||||
TAGS="docker.io/${REPO_LOWER}:${TAG},ghcr.io/${REPO_LOWER}:${TAG}"
|
||||
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
|
||||
# Git tag push
|
||||
TAG="${{ github.ref_name }}"
|
||||
TAG="${TAG#v}" # Remove v prefix
|
||||
TAGS="docker.io/${REPO_LOWER}:${TAG},ghcr.io/${{ env.REPO_NAME }}:${TAG}"
|
||||
TAGS="docker.io/${REPO_LOWER}:${TAG},ghcr.io/${REPO_LOWER}:${TAG}"
|
||||
elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
|
||||
# Main branch push
|
||||
TAGS="docker.io/${REPO_LOWER}:latest,ghcr.io/${{ env.REPO_NAME }}:latest"
|
||||
TAGS="docker.io/${REPO_LOWER}:latest,ghcr.io/${REPO_LOWER}:latest"
|
||||
fi
|
||||
|
||||
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
|
||||
echo "repo_lower=${REPO_LOWER}" >> $GITHUB_OUTPUT
|
||||
echo "Publishing tags: ${TAGS}"
|
||||
|
||||
- name: 🔑 Login to Docker Hub
|
||||
@@ -86,7 +87,7 @@ jobs:
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: ghcr.io/${{ env.REPO_NAME }}
|
||||
images: ghcr.io/${{ steps.tags.outputs.repo_lower }}
|
||||
tags: |
|
||||
type=raw,value=${{ steps.tags.outputs.tags }}
|
||||
labels: |
|
||||
|
||||
Reference in new issue
Block a user