Update Docker image references from 'telemtPanel' to 'telemtpanel' across configuration files and documentation for consistency.
Build and Push Telemt Panel Docker Image / build-and-push (push) Successful in 3m34s
Build and Push Telemt Panel Docker Image / create-release (push) Skipped

This commit is contained in:
Denozordec
2026-08-04 18:36:44 +07:00
parent b5f31c1083
commit 9ac385d332
7 changed files with 24 additions and 14 deletions
+14 -4
View File
@@ -39,11 +39,20 @@ jobs:
echo "GIT_COMMIT_SHORT=$(echo ${{ gitea.sha }} | cut -c1-7)" >> ./version.txt
echo "BUILD_TIMESTAMP=$(date -u +%s)" >> ./version.txt
# Docker registry names must be lowercase (Gitea repo is telemtPanel).
- name: Resolve image name
id: image
run: |
IMAGE_REPO="git.shts.su/$(echo '${{ gitea.repository }}' | tr '[:upper:]' '[:lower:]')"
echo "name=${IMAGE_REPO}" >> "$GITHUB_OUTPUT"
echo "name=${IMAGE_REPO}" >> "$GITEA_OUTPUT"
echo "Resolved image: ${IMAGE_REPO}"
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: git.shts.su/${{ gitea.repository }}
images: ${{ steps.image.outputs.name }}
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable=${{ gitea.ref_name == 'main' }}
@@ -59,8 +68,8 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NODE_VERSION=22.23.0-bookworm-slim
cache-from: type=registry,ref=git.shts.su/${{ gitea.repository }}:buildcache
cache-to: type=registry,ref=git.shts.su/${{ gitea.repository }}:buildcache,mode=max
cache-from: type=registry,ref=${{ steps.image.outputs.name }}:buildcache
cache-to: type=registry,ref=${{ steps.image.outputs.name }}:buildcache,mode=max
provenance: true
create-release:
@@ -90,12 +99,13 @@ jobs:
- name: Create Release
run: |
VERSION="${{ gitea.ref_name }}"
IMAGE_REPO="git.shts.su/$(echo '${{ gitea.repository }}' | tr '[:upper:]' '[:lower:]')"
RELEASE_DATA=$(cat <<EOF
{
"tag_name": "${VERSION}",
"target_commitish": "${{ gitea.sha }}",
"name": "telemt-panel ${VERSION}",
"body": "## telemt-panel ${VERSION}\n\n### Docker\n\n\`\`\`bash\ndocker pull git.shts.su/${{ gitea.repository }}:${VERSION}\ndocker run -d --network host -e PANEL_MODE=standalone -e TELEMT_API_URL=http://127.0.0.1:9091 -e JWT_SECRET=change-me -e BOOTSTRAP_PASSWORD=change-me -v /var/lib/telemt-panel:/data --name telemt-panel git.shts.su/${{ gitea.repository }}:${VERSION}\n\`\`\`\n\nСм. docs/install.md\n\n### Changelog\n\n${{ steps.changelog.outputs.CHANGELOG }}",
"body": "## telemt-panel ${VERSION}\n\n### Docker\n\n\`\`\`bash\ndocker pull ${IMAGE_REPO}:${VERSION}\ndocker run -d --network host -e PANEL_MODE=standalone -e TELEMT_API_URL=http://127.0.0.1:9091 -e JWT_SECRET=change-me -e BOOTSTRAP_PASSWORD=change-me -v /var/lib/telemt-panel:/data --name telemt-panel ${IMAGE_REPO}:${VERSION}\n\`\`\`\n\nСм. docs/install.md\n\n### Changelog\n\n${{ steps.changelog.outputs.CHANGELOG }}",
"draft": false,
"prerelease": false
}