Skip to content

Commit

Permalink
Fix hardcoded amd64 arch for git-shim (#9067)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrcuns authored Feb 16, 2024
1 parent 9e7396e commit dfe50fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile.updater-core
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM docker.io/library/ubuntu:22.04

ARG TARGETARCH

LABEL org.opencontainers.image.source="https://github.com/dependabot/dependabot-core"

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
Expand Down Expand Up @@ -72,7 +74,7 @@ ENV DEPENDABOT=true
ENV GIT_LFS_SKIP_SMUDGE=1

# Place a git shim ahead of git on the path to rewrite git arguments to use HTTPS.
ARG SHIM="https://github.com/dependabot/git-shim/releases/download/v1.4.0/git-v1.4.0-linux-amd64.tar.gz"
ARG SHIM="https://github.com/dependabot/git-shim/releases/download/v1.4.0/git-v1.4.0-linux-${TARGETARCH}.tar.gz"
RUN curl -sL $SHIM -o git-shim.tar.gz && mkdir -p ~/bin && tar -xvf git-shim.tar.gz -C ~/bin && rm git-shim.tar.gz

COPY --chown=dependabot:dependabot omnibus omnibus
Expand Down

0 comments on commit dfe50fe

Please sign in to comment.