Skip to content

Commit

Permalink
revert arch var name (kubernetes#8808)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikatz authored and rchshld committed May 17, 2023
1 parent 8602cad commit fbd19b8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ image: clean-image ## Build image for a particular arch.
--pull \
--build-arg BASE_IMAGE="$(BASE_IMAGE)" \
--build-arg VERSION="$(TAG)" \
--build-arg TARGET_ARCH="$(ARCH)" \
--build-arg TARGETARCH="$(ARCH)" \
--build-arg COMMIT_SHA="$(COMMIT_SHA)" \
--build-arg BUILD_ID="$(BUILD_ID)" \
-t $(REGISTRY)/controller:$(TAG) rootfs
Expand All @@ -97,7 +97,7 @@ image-chroot: clean-chroot-image ## Build image for a particular arch.
--pull \
--build-arg BASE_IMAGE="$(BASE_IMAGE)" \
--build-arg VERSION="$(TAG)" \
--build-arg TARGET_ARCH="$(ARCH)" \
--build-arg TARGETARCH="$(ARCH)" \
--build-arg COMMIT_SHA="$(COMMIT_SHA)" \
--build-arg BUILD_ID="$(BUILD_ID)" \
-t $(REGISTRY)/controller-chroot:$(TAG) rootfs -f rootfs/Dockerfile-chroot
Expand Down
2 changes: 1 addition & 1 deletion TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.3.0
v1.3.0-beta.0
8 changes: 4 additions & 4 deletions rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ARG BASE_IMAGE

FROM ${BASE_IMAGE}

ARG TARGET_ARCH
ARG TARGETARCH
ARG VERSION
ARG COMMIT_SHA
ARG BUILD_ID=UNSET
Expand All @@ -41,9 +41,9 @@ RUN apk update \

COPY --chown=www-data:www-data etc /etc

COPY --chown=www-data:www-data bin/${TARGET_ARCH}/dbg /
COPY --chown=www-data:www-data bin/${TARGET_ARCH}/nginx-ingress-controller /
COPY --chown=www-data:www-data bin/${TARGET_ARCH}/wait-shutdown /
COPY --chown=www-data:www-data bin/${TARGETARCH}/dbg /
COPY --chown=www-data:www-data bin/${TARGETARCH}/nginx-ingress-controller /
COPY --chown=www-data:www-data bin/${TARGETARCH}/wait-shutdown /

# Fix permission during the build to avoid issues at runtime
# with volumes (custom templates)
Expand Down
8 changes: 4 additions & 4 deletions rootfs/Dockerfile-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN apk update \

FROM alpine:3.16.0

ARG TARGET_ARCH
ARG TARGETARCH
ARG VERSION
ARG COMMIT_SHA
ARG BUILD_ID=UNSET
Expand Down Expand Up @@ -64,9 +64,9 @@ COPY --from=chroot /chroot /chroot

COPY --chown=www-data:www-data etc /chroot/etc

COPY --chown=www-data:www-data bin/${TARGET_ARCH}/dbg /
COPY --chown=www-data:www-data bin/${TARGET_ARCH}/nginx-ingress-controller /
COPY --chown=www-data:www-data bin/${TARGET_ARCH}/wait-shutdown /
COPY --chown=www-data:www-data bin/${TARGETARCH}/dbg /
COPY --chown=www-data:www-data bin/${TARGETARCH}/nginx-ingress-controller /
COPY --chown=www-data:www-data bin/${TARGETARCH}/wait-shutdown /
COPY --chown=www-data:www-data nginx-chroot-wrapper.sh /usr/bin/nginx

WORKDIR /chroot/etc/nginx
Expand Down

0 comments on commit fbd19b8

Please sign in to comment.