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:
Shankar
2026-03-28 19:24:12 -04:00
parent 4de626f758
commit d4bfea2bf6
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
+1
View File
@@ -25,6 +25,7 @@ certctl is a self-hosted platform that automates the entire certificate lifecycl
[![License](https://img.shields.io/badge/license-BSL%201.1-blue.svg)](LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/shankar0123/certctl)](https://goreportcard.com/report/github.com/shankar0123/certctl)
[![GitHub Release](https://img.shields.io/github/v/release/shankar0123/certctl)](https://github.com/shankar0123/certctl/releases)
[![Docker Pulls](https://img.shields.io/docker/pulls/shankar0123/certctl-server)](https://hub.docker.com/r/shankar0123/certctl-server)
## Documentation