Skip to content

Commit 33a7abc

Browse files
committed
fix: repo name
1 parent d23807c commit 33a7abc

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/docker-publish.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ jobs:
101101
fi
102102
echo "version=$VERSION" >> $GITHUB_OUTPUT
103103
echo "Package version: $VERSION"
104+
105+
# Set lowercase repository name for Docker
106+
REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
107+
echo "repository=$REPO_LOWER" >> $GITHUB_OUTPUT
108+
echo "Repository (lowercase): $REPO_LOWER"
104109
105110
- name: Update version in control file
106111
run: |
@@ -109,9 +114,11 @@ jobs:
109114
- name: Wait for image to be available
110115
run: |
111116
echo "Waiting for Docker image to be available..."
117+
REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
118+
echo "Pulling from: ghcr.io/${REPO_LOWER}:latest"
112119
sleep 10
113120
for i in {1..30}; do
114-
if docker pull ghcr.io/${{ github.repository }}:latest; then
121+
if docker pull ghcr.io/${REPO_LOWER}:latest; then
115122
echo "Image is available!"
116123
break
117124
fi
@@ -143,14 +150,15 @@ jobs:
143150
- name: Generate release notes
144151
id: release_notes
145152
run: |
146-
cat > release_notes.md << 'EOF'
153+
REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
154+
cat > release_notes.md << EOF
147155
## Swarm CLI Release ${{ steps.version.outputs.version }}
148156
149157
### Docker Image
150-
```bash
151-
docker pull ghcr.io/${{ github.repository }}:latest
152-
docker pull ghcr.io/${{ github.repository }}:${{ steps.version.outputs.version }}
153-
```
158+
\`\`\`bash
159+
docker pull ghcr.io/${REPO_LOWER}:latest
160+
docker pull ghcr.io/${REPO_LOWER}:${{ steps.version.outputs.version }}
161+
\`\`\`
154162
155163
### Installation Options
156164
@@ -185,7 +193,7 @@ jobs:
185193
```
186194
187195
### What's Changed
188-
- Docker image: `ghcr.io/${{ github.repository }}:${{ steps.version.outputs.version }}`
196+
- Docker image: \`ghcr.io/${REPO_LOWER}:${{ steps.version.outputs.version }}\`
189197
- Built from commit: ${{ github.sha }}
190198
EOF
191199

0 commit comments

Comments
 (0)