From e8bf5a55952260832a164e03a2c3f8fd6a9a405a Mon Sep 17 00:00:00 2001 From: tiehfood Date: Thu, 30 Jan 2025 16:26:43 +0100 Subject: [PATCH 1/2] doc: Add badges in README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 92efa84..d2a82b1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,20 @@

+

+ + Release Version + + + Docker Pulls + + + License + + + + +

# Thrifty @@ -80,7 +94,7 @@ cd api go get . # install swag (optional) -go install github.com/swaggo/swag/cmd/swag@latest; \ +go install github.com/swaggo/swag/cmd/swag@latest # generate swagger documentation (optional) swag init From 0db59e49b41b5dcc1399b9b2ba12fa4fcf22d059 Mon Sep 17 00:00:00 2001 From: Jason Yang Date: Fri, 31 Jan 2025 02:54:42 -0800 Subject: [PATCH 2/2] feat: Add multi arch docker build --- .github/workflows/release.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5eb87ef..ee8d882 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -37,6 +37,10 @@ jobs: needs: release if: ${{ needs.release.outputs.CI_CREATE_IMAGE == 'true' }} steps: + - name: Set QEMU + uses: docker/setup-qemu-action@v3 + - name: Set Buildx + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -48,10 +52,12 @@ jobs: with: context: ./ui push: true + platforms: linux/amd64,linux/arm64 tags: "${{ vars.DOCKERHUB_USERNAME }}/thrifty-ui:latest, ${{ vars.DOCKERHUB_USERNAME }}/thrifty-ui:${{ needs.release.outputs.VERSION_NUMBER }}" - name: Build and push API uses: docker/build-push-action@v6 with: context: ./api push: true + platforms: linux/amd64,linux/arm64 tags: "${{ vars.DOCKERHUB_USERNAME }}/thrifty-api:latest, ${{ vars.DOCKERHUB_USERNAME }}/thrifty-api:${{ needs.release.outputs.VERSION_NUMBER }}"