From 7aca5c1ff95362469a90ee68bb68d30d829f7a49 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 12:31:11 +0000 Subject: [PATCH 1/3] chore: add release workflow for docker hub - Added `.github/workflows/release.yml` to build and push Docker images to Docker Hub. - Configured trigger on `push` to `main` branch and `v*` tags. - Enabled multi-platform builds for `linux/amd64` and `linux/arm64`. - Uses `docker/metadata-action` for automatic tagging (`latest`, semver). - Requires `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` secrets. --- .github/workflows/release.yml | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7ef3c4f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,53 @@ +name: Release + +on: + push: + branches: [ "main" ] + tags: [ "v*" ] + +jobs: + build-and-push: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Set up QEMU for multi-platform builds + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + # Set up Docker Buildx + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # Log in to Docker Hub + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + # Extract metadata (tags, labels) for Docker + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: yilingj/forgery + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=semver,pattern={{version}} + type=sha + + # Build and push Docker image + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64,linux/arm64 From e7bdaf75d2935040290c2325d2b85a106a66d3bc Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 12:47:53 +0000 Subject: [PATCH 2/3] 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. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ef3c4f..56f052f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 From 068dc39d396ea14257957b14a79b972f27dd3ed4 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 12:59:14 +0000 Subject: [PATCH 3/3] 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`. - Uses hardcoded `yilingj` username and `DOCKERHUB_TOKEN` secret. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56f052f..dc48d97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Log in to Docker Hub uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} + username: yilingj password: ${{ secrets.DOCKERHUB_TOKEN }} # Extract metadata (tags, labels) for Docker