ping-monitoring

A prometheus exporter to monitor matrix federation with using the existing pingbot infra.
git clone git://archive.git.mtrnord.blog/MTRNord/ping-monitoring.git
Log | Files | Refs | LICENSE

commit 54e579ac650085bbde3d0cdc554e5d5698fd73f3
parent 91b8e4f44df8de69c3a4b0e11d60246bec581cb4
Author: MTRNord <mtrnord1@gmail.com>
Date:   Thu, 15 Feb 2024 21:56:06 +0100

Make multiplatform

Diffstat:
M.github/workflows/build_docker.yaml | 14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build_docker.yaml b/.github/workflows/build_docker.yaml @@ -23,6 +23,15 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + + # Install QEMU to enable cross-platform builds + - name: Setup QEMU + uses: docker/setup-qemu-action@v3 + + # Set up Docker Buildx + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + # Fetch the latest Git tag and current branch - name: Get Git version and branch id: git_info @@ -31,7 +40,7 @@ jobs: echo ::set-output name=BRANCH::$(git rev-parse --abbrev-ref HEAD) # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -46,10 +55,11 @@ jobs: # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. - name: Build and push Docker image - uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + uses: docker/build-push-action@v5 with: context: . push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: |