Browse Source

Update build.yml

0xJacky 3 years ago
parent
commit
993e3c7c89
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .github/workflows/build.yml

+ 4 - 4
.github/workflows/build.yml

@@ -188,24 +188,24 @@ jobs:
                     files: ${{ env.DIST }}.tar.gz
 
             -   name: Set up Docker Buildx
-                if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOOS == 'amd64'
+                if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
                 id: buildx
                 uses: docker/setup-buildx-action@v1
 
             -   name: Login to DockerHub
-                if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOOS == 'amd64'
+                if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
                 uses: docker/login-action@v1
                 with:
                     username: ${{ secrets.DOCKERHUB_USER }}
                     password: ${{ secrets.DOCKERHUB_TOKEN }}
 
             -   name: Prepare Dockerfile
-                if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOOS == 'amd64'
+                if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
                 run: |
                     cp ./Dockerfile ./dist
 
             -   name: Build and push
-                if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOOS == 'amd64'
+                if: github.event_name == 'release' && env.GOOS == 'linux' && env.GOARCH == 'amd64'
                 uses: docker/build-push-action@v2
                 with:
                     context: ./dist