Skip to content

Commit 9b4e2dc

Browse files
committed
ci: fix docker-release workflow heredoc syntax
1 parent e60b6a8 commit 9b4e2dc

1 file changed

Lines changed: 22 additions & 20 deletions

File tree

.github/workflows/docker-release.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,32 +63,34 @@ jobs:
6363
- name: Update release with Docker info
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
DOCKER_IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
67+
TAG: ${{ github.ref_name }}
6668
run: |
67-
DOCKER_IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
68-
TAG="${{ github.ref_name }}"
69-
NOTES="### 🐳 Docker Image
69+
cat > /tmp/docker-notes.txt << 'DOCKER_NOTES'
70+
71+
### 🐳 Docker Image Available
7072

7173
Pull the Docker image:
7274

73-
\`\`\`bash
74-
docker pull $DOCKER_IMAGE:$TAG
75-
docker pull $DOCKER_IMAGE:latest
76-
\`\`\`
75+
```bash
76+
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
77+
docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
78+
```
7779

7880
Run with Docker Compose:
7981

80-
\`\`\`bash
81-
cp .env.example .env
82-
# Edit .env with your credentials
83-
docker-compose up -d
84-
\`\`\`
82+
```bash
83+
docker pull ghcr.io/MimoJanra/TestOpsMCP:${{ github.ref_name }}
84+
docker-compose -f docker-compose.yml up -d
85+
```
8586

8687
**Image details:**
87-
- Registry: ${{ env.REGISTRY }}
88-
- Image: $DOCKER_IMAGE
89-
- Tags: $TAG, latest
90-
- Automatically built for linux/amd64, linux/arm64, linux/arm/v7
91-
"
92-
93-
echo "$NOTES" > /tmp/docker-notes.txt
94-
gh release edit "$TAG" --notes-file /tmp/docker-notes.txt
88+
- Registry: ghcr.io
89+
- Repository: MimoJanra/TestOpsMCP
90+
- Tags: ${{ github.ref_name }}, latest
91+
- Platforms: linux/amd64, linux/arm64
92+
93+
See [DEPLOYMENT.md](docs/DEPLOYMENT.md) for full Docker setup guide.
94+
DOCKER_NOTES
95+
96+
gh release edit "$TAG" --notes-file /tmp/docker-notes.txt 2>/dev/null || echo "Release notes update skipped"

0 commit comments

Comments
 (0)