From 4ade06bec1b7e450cbb6c28d1b9cf5010c835dfe Mon Sep 17 00:00:00 2001 From: snail Date: Thu, 24 Oct 2024 16:18:40 +0800 Subject: [PATCH] Finally succeeded, automatically building binary and container images --- .github/workflows/ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e05c9a1..d083720 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,6 @@ on: env: GO_VERSION: 1.22 CGO_ENABLED: 0 - jobs: build-binary: @@ -55,7 +54,7 @@ jobs: build-image: runs-on: ubuntu-latest - needs: build-binary + # needs: build-binary steps: - name: Checkout code uses: actions/checkout@v2 @@ -74,11 +73,6 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - - name: show - run: | - echo ${{ steps.set_output.outputs.tag }} - - name: Build and push Docker image run: | - # docker buildx build --build-arg IMAGE=golang:1.22 --platform linux/amd64,linux/arm64 -t snail2sky/bbx:latest . --push - docker buildx build --build-arg IMAGE=golang:1.22 --platform linux/amd64 -t snail2sky/bbx:${{ steps.set_output.outputs.tag }} . --push + docker buildx build --build-arg IMAGE=golang:1.22 --platform linux/amd64,linux/arm64 -t snail2sky/bbx:${{ steps.set_output.outputs.tag }} . --push