mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 15:11:29 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ certctl is a self-hosted platform that automates the entire certificate lifecycl
|
||||
[](LICENSE)
|
||||
[](https://goreportcard.com/report/github.com/shankar0123/certctl)
|
||||
[](https://github.com/shankar0123/certctl/releases)
|
||||
[](https://hub.docker.com/r/shankar0123/certctl-server)
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user