Skip to content

Commit

Permalink
Merge pull request #240 from groggemans/fix/GH-239
Browse files Browse the repository at this point in the history
fix: armv7 docker builds
  • Loading branch information
k8s-ci-robot authored Nov 2, 2021
2 parents e9bd4d1 + 741a706 commit 96d13a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG ARCH=amd64

FROM k8s.gcr.io/build-image/debian-base:buster-v1.6.0

# Architecture for bin folder
ARG ARCH

# Copy nfsplugin from build _output directory
COPY bin/${ARCH}/nfsplugin /nfsplugin

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ nfs:

.PHONY: nfs-armv7
nfs-armv7:
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -mod vendor -o bin/arm/v7/nfsplugin ./cmd/nfsplugin
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -mod vendor -o bin/arm/v7/nfsplugin ./cmd/nfsplugin

.PHONY: container-build
container-build:
Expand Down

0 comments on commit 96d13a5

Please sign in to comment.