Dockerfile buildx changes, remove Dockerhub hooks

This commit is contained in:
Sergey Bogatyrets 2020-03-20 23:05:00 +03:00
parent fd4931ed4d
commit 1c2d4e53a2
3 changed files with 1 additions and 18 deletions

View File

@ -1,7 +1,6 @@
ARG ARCH=CIDEFINED
ARG GOLANG_VERSION="1.12" ARG GOLANG_VERSION="1.12"
FROM $ARCH/golang:$GOLANG_VERSION-alpine as builder FROM --platform=$BUILDPLATFORM golang:$GOLANG_VERSION-alpine as builder
WORKDIR /go/src/github.com/olebedev/socks5 WORKDIR /go/src/github.com/olebedev/socks5
COPY . . COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5 RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5

View File

@ -1,6 +0,0 @@
#!/bin/sh
for i in arm32v6 arm32v6 arm64v8 amd64;
do
docker build --build-arg ARCH=$i -t serjs/$DOCKER_REPO:$DOCKER_TAG-$i .
done

View File

@ -1,10 +0,0 @@
#!/bin/sh
echo "--post_push hook called--"
echo "post_push: IMAGE_NAME '$IMAGE_NAME'"
echo "post_push: DOCKERFILE_PATH '$DOCKERFILE_PATH'"
echo "post_push: CACHE_TAG '$CACHE_TAG'"
echo "post_push: DOCKER_TAG '$DOCKER_TAG'"
echo "post_push: DOCKER_REPO '$DOCKER_REPO'"
echo "post_push: SOURCE_BRANCH '$SOURCE_BRANCH'"
echo "post_push: SOURCE_COMMIT '$SOURCE_COMMIT'"