diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 99e0e6d..04366f8 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -87,11 +87,19 @@ jobs: password: ${{ secrets.DOCKER }} # Build and push the Docker image to the registry - - name: Build Docker - run: docker build -t quainetwork/go-quai-stratum:${{ env.VERSION }} . + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build and push Docker image + uses: docker/build-push-action@v3 + with: + context: . + push: true + tags: quainetwork/go-quai-stratum:${{ env.VERSION }} + cache-from: type=gha + cache-to: type=gha,mode=max + platforms: linux/amd64,linux/arm64 - - name: Push to Docker Hub - run: docker push quainetwork/go-quai-stratum:${{ env.VERSION }} # Tag the Git repository with the current version - name: git tag diff --git a/.gitignore b/.gitignore index d44becf..917fa3a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build/ .vscode/ *.log config.json +.idea/ \ No newline at end of file