Skip to content

Commit

Permalink
Adding if statement to align docker input TARGETARCH with tenv releas…
Browse files Browse the repository at this point in the history
…e arch. arm64->arm
  • Loading branch information
iptizer committed May 5, 2024
1 parent 92ad01e commit de5a271
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master
# tenv
RUN LATEST_VERSION=$(curl --silent https://api.github.com/repos/tofuutils/tenv/releases/latest | jq -r .tag_name) && \
curl -O -L "https://github.com/tofuutils/tenv/releases/latest/download/tenv_${LATEST_VERSION}_amd64.deb" && \
dpkg -i "tenv_${LATEST_VERSION}_${TARGETARCH}.deb" && \
if [[ "$TARGETARCH" == "amd64" ]] ; then export TENVARCH="amd64" ; else export TENVARCH="arm" ; fi && \
dpkg -i "tenv_${LATEST_VERSION}_${TENVARCH}.deb" && \
tenv tofu install latest-stable && \
tenv tf install latest-stable && \
tenv tg install latest-stable
Expand Down

0 comments on commit de5a271

Please sign in to comment.