Skip to content

Commit

Permalink
CI: fix image build
Browse files Browse the repository at this point in the history
  • Loading branch information
nixargh committed Sep 4, 2024
1 parent ce57ad3 commit baca7e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set also `ARCH` ARG here so we can use it on all the `FROM`s.
ARG ARCH
# Set also `ALPINE_ARCH` ARG here so we can use it on all the `FROM`s.
ARG ALPINE_ARCH

FROM golang:1.23.0-alpine as build-stage

Expand All @@ -15,8 +15,6 @@ ENV VERSION=${VERSION}
ARG ARCH
ENV GOARCH=${ARCH}

ARG ALPINE_ARCH

# Compile.
WORKDIR /src
COPY . .
Expand Down
6 changes: 2 additions & 4 deletions scripts/build/docker/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ ARCH=${ARCH:-$DEF_ARCH}
IMAGE_TAG_ARCH="${IMAGE}:${VERSION}-${ARCH}"

# Guess Alpine image arch. Take the same as $ARCH by default.
ALPINE_ARCH="${ARCH}"

case $ARCH in
arm64)
ALPINE_ARCH="arm64v8"
Expand All @@ -21,10 +23,6 @@ case $ARCH in
arm)
ALPINE_ARCH="arm32v7"
;;

*)
ALPINE_ARCH="${ARCH}"
;;
esac

# Build image.
Expand Down

0 comments on commit baca7e5

Please sign in to comment.