Skip to content

Commit 6c73187

Browse files
committed
Fix: Add docker image info to release notes via dock-build workflow
1 parent cedd60f commit 6c73187

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- name: Checkout code
2121
uses: actions/checkout@v4.2.2
2222

23-
# Step 2: Debug: Verify api_stats.sh and repository content
2423
- name: List repository files
2524
run: ls -R .; pwd
2625
- name: Set up Docker Buildx
@@ -43,8 +42,6 @@ jobs:
4342
ghcr.io/nginx/nginx-utils:${{ env.RELEASE_VERSION }}
4443
ghcr.io/nginx/nginx-utils:latest
4544
46-
47-
# Step 5: Install Trivy for Vulnerability Scanning
4845
- name: Install Trivy and scan image for vulnerabilities
4946
uses: aquasecurity/trivy-action@0.31.0
5047

@@ -58,3 +55,21 @@ jobs:
5855
with:
5956
name: vuln-report
6057
path: vuln-report.json
58+
59+
- name: Update Release Notes with Docker Image Info
60+
uses: softprops/action-gh-release@v2.3.2
61+
with:
62+
tag_name: ${{ github.event.release.tag_name }}
63+
body: |
64+
## Docker Image
65+
The Docker image for this release can be pulled using:
66+
67+
```
68+
docker pull ghcr.io/${{ github.repository_owner }}/nginx-utils:${{ github.event.release.tag_name }}
69+
```
70+
71+
Or use the `latest` tag:
72+
73+
```
74+
docker pull ghcr.io/${{ github.repository_owner }}/nginx-utils:latest
75+
```

0 commit comments

Comments
 (0)