Skip to content

Commit

Permalink
fix: Only build for amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouter committed Dec 5, 2023
1 parent 75893cc commit b884893
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker-release-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,5 @@ jobs:
with:
push: true
tags: ${{ steps.prep.outputs.tags }}
build-args: |
ARCH=${{ runner.arch }}
platforms: |-
linux/amd64
2 changes: 0 additions & 2 deletions .github/workflows/docker-release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,5 @@ jobs:
with:
push: true
tags: ${{ steps.prep.outputs.tags }}
build-args: |
ARCH=${{ runner.arch }}
platforms: |-
linux/amd64
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
FROM debian:latest as builder

ARG VERSION=0.2.0
ARG ARCH=amd64

RUN apt update && \
apt install -y curl && \
if [[ "$ARCH" == "ARM64" ]]; then \
OSARCH="arm64" \
elif [[ "ARCH" == "X64" ]]; then \
OSARCH="amd64" \
else \
OSARCH=$ARCH \
fi && \
curl -sLo /tmp/messagebird_exporter.deb \
https://github.com/roaldnefs/messagebird_exporter/releases/download/v${VERSION}/messagebird_exporter_${VERSION}_linux_${OSARCH}.deb && \
https://github.com/roaldnefs/messagebird_exporter/releases/download/v${VERSION}/messagebird_exporter_${VERSION}_linux_amd64.deb && \
apt install -y /tmp/messagebird_exporter.deb


Expand Down

0 comments on commit b884893

Please sign in to comment.