diff --git a/.github/workflows/prometheus-alert-workflows.yaml b/.github/workflows/prometheus-alert-workflows.yaml index 7326c292..e21b0068 100644 --- a/.github/workflows/prometheus-alert-workflows.yaml +++ b/.github/workflows/prometheus-alert-workflows.yaml @@ -20,10 +20,13 @@ jobs: steps: - name: Check out the repo - uses: actions/checkout@v2 - + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Log in to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -35,9 +38,11 @@ jobs: images: feiyu563/prometheus-alert - name: Build and push Docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: context: . + platforms: linux/amd64,linux/arm64 push: true + pull: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }}