chore: add release workflow for docker hub
- Added `.github/workflows/release.yml` for multi-platform Docker builds. - Configured triggers for `main` branch pushes and `v*` tags. - Uses `docker/metadata-action` for tagging: - `latest` is only updated on semantic version tags (e.g., `v1.0.0`). - `main` branch pushes are tagged with `main` and commit SHA. - Supports `linux/amd64` and `linux/arm64`. - Requires `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` secrets.
This commit is contained in:
1 parent
7aca5c1ff9
commit
e7bdaf75d2
1 file changed
+1
-1
@@ -38,8 +38,8 @@ jobs:
|
||||
with:
|
||||
images: yilingj/forgery
|
||||
tags: |
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
type=semver,pattern={{version}}
|
||||
type=ref,event=branch
|
||||
type=sha
|
||||
|
||||
# Build and push Docker image
|
||||
|
||||
Reference in new issue
Block a user