From 92f265df39ebec5ca223aeda31601c81b2572ee1 Mon Sep 17 00:00:00 2001 From: Richard Crowley Date: Mon, 15 Jul 2024 16:41:06 -0700 Subject: [PATCH] Docker's upset so do the build outside of it --- .github/workflows/build.yml | 5 ++++- Dockerfile | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85d2b1b5..dcad135c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Build mysqld_exporter + run: make build + - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: @@ -50,4 +53,4 @@ jobs: with: push-to-registry: true subject-digest: ${{ steps.push.outputs.digest }} - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} \ No newline at end of file + subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} diff --git a/Dockerfile b/Dockerfile index ee26de9c..63e8e5b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,6 @@ ARG OS="linux" FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest LABEL maintainer="The Prometheus Authors " -ARG ARCH="amd64" -ARG OS="linux" -RUN make build COPY ./mysqld_exporter /bin/mysqld_exporter EXPOSE 9104