Skip to content

Commit

Permalink
Merge pull request #536 from rancher/gha-portpr-10169370218-1
Browse files Browse the repository at this point in the history
[backport release/v3.0] Fix package script bug
  • Loading branch information
mallardduck authored Jul 30, 2024
2 parents e59b40d + 29713be commit eedea03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN if [ "${ARCH}" != "s390x" ]; then \
fi


ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS CROSS_ARCH USE_DOCKER_BUILDX
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS CROSS_ARCH USE_DOCKER_BUILDX TARGET_ARCH
ENV DAPPER_SOURCE /go/src/github.com/rancher/backup-restore-operator/
ENV DAPPER_OUTPUT ./bin ./dist
ENV GOCACHE /root/.cache/go-build
Expand Down
4 changes: 2 additions & 2 deletions scripts/package
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ if [[ ${USE_DOCKER_BUILDX} -eq 1 ]]; then
else
docker build -f ${DOCKERFILE} -t ${IMAGE} .
fi
echo Built ${IMAGE}

docker image save rancher/backup-restore-operator:$TAG -o ./dist/artifacts/backup-restore-operator.img
echo Built ${IMAGE}
docker image save ${IMAGE} -o ./dist/artifacts/backup-restore-operator.img

./scripts/package-helm
1 change: 1 addition & 0 deletions scripts/version
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ else
VERSION="${COMMIT}${DIRTY}"
fi

ARCH=$TARGET_ARCH
if [ -z "$ARCH" ]; then
ARCH=$(go env GOHOSTARCH)
fi
Expand Down

0 comments on commit eedea03

Please sign in to comment.