ci: add Docker Hub dual-push and pulls badge to README

Release workflow now pushes to both ghcr.io and Docker Hub on tag.
Adds shields.io Docker Pulls badge to README for social proof.
Requires DOCKERHUB_USERNAME and DOCKERHUB_TOKEN repo secrets.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
shankar0123
2026-03-28 19:24:12 -04:00
parent 11e752ac01
commit 935ea1bf9f
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -26,6 +26,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
@@ -42,6 +48,8 @@ jobs:
tags: |
${{ env.REGISTRY }}/shankar0123/certctl-server:${{ steps.version.outputs.VERSION }}
${{ env.REGISTRY }}/shankar0123/certctl-server:latest
${{ secrets.DOCKERHUB_USERNAME }}/certctl-server:${{ steps.version.outputs.VERSION }}
${{ secrets.DOCKERHUB_USERNAME }}/certctl-server:latest
cache-from: type=gha
cache-to: type=gha,mode=max
@@ -54,6 +62,8 @@ jobs:
tags: |
${{ env.REGISTRY }}/shankar0123/certctl-agent:${{ steps.version.outputs.VERSION }}
${{ env.REGISTRY }}/shankar0123/certctl-agent:latest
${{ secrets.DOCKERHUB_USERNAME }}/certctl-agent:${{ steps.version.outputs.VERSION }}
${{ secrets.DOCKERHUB_USERNAME }}/certctl-agent:latest
cache-from: type=gha
cache-to: type=gha,mode=max