Skip to content

Commit 28b24bb

Browse files
committed
ci: Update Docker Hub publish workflow to enhance release creation process and improve documentation formatting
1 parent 810d9bf commit 28b24bb

File tree

1 file changed

+27
-29
lines changed

1 file changed

+27
-29
lines changed

.github/workflows/publish-dockerhub.yml

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: write
24+
pull-requests: write
25+
issues: write
2426
steps:
2527
- name: Checkout code
2628
uses: actions/checkout@v4
@@ -78,42 +80,38 @@ jobs:
7880

7981
- name: Create Release
8082
if: github.event_name != 'workflow_dispatch'
81-
uses: actions/create-release@v1
8283
env:
8384
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84-
with:
85-
tag_name: ${{ steps.version.outputs.version }}
86-
release_name: Release ${{ steps.version.outputs.version }}
87-
body: |
88-
## 🚀 GC-QA-RAG ${{ steps.version.outputs.version }}
85+
run: |
86+
gh release create ${{ steps.version.outputs.version }} \
87+
--title "Release ${{ steps.version.outputs.version }}" \
88+
--notes "## 🚀 GC-QA-RAG ${{ steps.version.outputs.version }}
8989
90-
### 📦 Docker Images
90+
### 📦 Docker Images
9191
92-
This release includes the following Docker images:
92+
This release includes the following Docker images:
9393
94-
- `${{ env.DOCKERHUB_USERNAME }}/${{ env.PROJECT_NAME }}-server:${{ steps.version.outputs.version }}`
95-
- `${{ env.DOCKERHUB_USERNAME }}/${{ env.PROJECT_NAME }}-etl:${{ steps.version.outputs.version }}`
96-
- `${{ env.DOCKERHUB_USERNAME }}/${{ env.PROJECT_NAME }}-frontend:${{ steps.version.outputs.version }}`
94+
- \`${{ env.DOCKERHUB_USERNAME }}/${{ env.PROJECT_NAME }}-server:${{ steps.version.outputs.version }}\`
95+
- \`${{ env.DOCKERHUB_USERNAME }}/${{ env.PROJECT_NAME }}-etl:${{ steps.version.outputs.version }}\`
96+
- \`${{ env.DOCKERHUB_USERNAME }}/${{ env.PROJECT_NAME }}-frontend:${{ steps.version.outputs.version }}\`
9797
98-
### 🐳 Quick Deployment
98+
### 🐳 Quick Deployment
9999
100-
```bash
101-
# Deploy ETL service using Docker Hub images
102-
cd sources/gc-qa-rag-etl/deploy
103-
# Edit docker-compose.dockerhub.yml file, uncomment environment variables and fill in your API keys
104-
# Start ETL service
105-
docker compose -f docker-compose.dockerhub.yml up -d
100+
\`\`\`bash
101+
# Deploy ETL service using Docker Hub images
102+
cd sources/gc-qa-rag-etl/deploy
103+
# Edit docker-compose.dockerhub.yml file, uncomment environment variables and fill in your API keys
104+
# Start ETL service
105+
docker compose -f docker-compose.dockerhub.yml up -d
106106
107-
# Deploy RAG service using Docker Hub images
108-
cd sources/gc-qa-rag-server/deploy
109-
# Edit docker-compose.dockerhub.yml file, uncomment environment variables and fill in your API keys
110-
# Start RAG service
111-
docker compose -f docker-compose.dockerhub.yml up -d
112-
```
107+
# Deploy RAG service using Docker Hub images
108+
cd sources/gc-qa-rag-server/deploy
109+
# Edit docker-compose.dockerhub.yml file, uncomment environment variables and fill in your API keys
110+
# Start RAG service
111+
docker compose -f docker-compose.dockerhub.yml up -d
112+
\`\`\`
113113
114-
### 📚 Documentation
114+
### 📚 Documentation
115115
116-
- [Deployment Guide](https://grapecity-ai.github.io/gc-qa-rag/en/2-development-tutorial/1-docker-deployment/)
117-
- [Project Documentation](https://grapecity-ai.github.io/gc-qa-rag/en/)
118-
draft: false
119-
prerelease: false
116+
- [Deployment Guide](https://grapecity-ai.github.io/gc-qa-rag/en/2-development-tutorial/1-docker-deployment/)
117+
- [Project Documentation](https://grapecity-ai.github.io/gc-qa-rag/en/)"

0 commit comments

Comments
 (0)