diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 001cb9f..b7f4255 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -9,22 +9,21 @@ jobs: build: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v4 - - - name: Login to Docker Hub + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and push + - name: Build and push uses: docker/build-push-action@v5 with: context: "{{defaultContext}}:cli" + platforms: linux/amd64,linux/arm64 push: true tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:latest