From 0bf696269f7b70eaf1e843de81d6faed376f1b7c Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Tue, 29 Jul 2025 22:02:34 +0800 Subject: [PATCH] ci: push github container registry Signed-off-by: Jianhui Zhao --- .github/workflows/release.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82828ca..eee1789 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: release on: + workflow_dispatch: push: tags: - 'v*' @@ -16,16 +17,45 @@ jobs: - uses: docker/login-action@v3 with: - username: zhaojh329 + username: ${{ github.repository_owner }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - uses: docker/build-push-action@v6 with: + platforms: linux/amd64,linux/arm64 push: true tags: | zhaojh329/rttys:${{ steps.get-version.outputs.version-without-v }} zhaojh329/rttys:latest + ghcr: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + + - id: get-version + uses: battila7/get-version-action@v2 + + - uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - uses: docker/build-push-action@v6 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: | + ghcr.io/${{ github.repository_owner }}/rttys:${{ steps.get-version.outputs.version-without-v }} + ghcr.io/${{ github.repository_owner }}/rttys:latest + build: runs-on: ubuntu-24.04 steps: