fix(ci): remove protocol prefix from Docker image tags

This commit is contained in:
2026-04-05 17:13:30 +02:00
parent fd13e67aef
commit 7a448034e4
2 changed files with 10 additions and 2 deletions
+7 -2
View File
@@ -28,6 +28,11 @@ jobs:
# Strip 'v' prefix for docker tag if needed
VERSION="${TAG#v}"
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
# Strip protocol (https://) from REGISTRY_URL for Docker tags
REGISTRY="${{ vars.REGISTRY_URL }}"
REGISTRY="${REGISTRY#https://}"
REGISTRY="${REGISTRY#http://}"
echo "registry=${REGISTRY}" >> "$GITHUB_OUTPUT"
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
@@ -45,8 +50,8 @@ jobs:
context: .
push: true
tags: |
${{ vars.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}:latest
${{ vars.REGISTRY_URL }}/${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.tag }}
${{ steps.version.outputs.registry }}/${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}:latest
${{ steps.version.outputs.registry }}/${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.tag }}
labels: |
org.opencontainers.image.title=Keywarden
org.opencontainers.image.description=Centralized SSH Key Management and Deployment
+3
View File
@@ -21,6 +21,9 @@ vendor/
*.swo
*~
# AI workspace
.ki-workspace/
# OS
.DS_Store
Thumbs.db