- Update labels to match those from https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys - Add missing build args. - Remove unneeded python (which was failing to install, BTW) from the image. - Remove `hooks` folder, which was used to build the image automatically in the Docker Hub. It's done in GitHub Actions now.pull/40/head
parent
144ea28cf3
commit
74c627bb27
@ -1,40 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
# Extract arch repo from a docker tag suffix
|
|
||||||
REPO=""
|
|
||||||
case "$DOCKER_TAG" in
|
|
||||||
*amd64)
|
|
||||||
REPO="library"
|
|
||||||
;;
|
|
||||||
*arm32v5)
|
|
||||||
REPO="arm32v5"
|
|
||||||
;;
|
|
||||||
*arm32v6)
|
|
||||||
REPO="arm32v6"
|
|
||||||
;;
|
|
||||||
*arm32v7)
|
|
||||||
REPO="arm32v7"
|
|
||||||
;;
|
|
||||||
*arm64v8)
|
|
||||||
REPO="arm64v8"
|
|
||||||
;;
|
|
||||||
*i386)
|
|
||||||
REPO="i386"
|
|
||||||
;;
|
|
||||||
*ppc64le)
|
|
||||||
REPO="ppc64le"
|
|
||||||
;;
|
|
||||||
*s390x)
|
|
||||||
REPO="s390x"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
REPO="library"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
docker build \
|
|
||||||
--build-arg REPO="$REPO" \
|
|
||||||
--build-arg VCS_REF="$GIT_SHA1" \
|
|
||||||
--build-arg BUILD_DATE="$(date --rfc-3339 ns)" \
|
|
||||||
--tag "$IMAGE_NAME" .
|
|
Loading…
Reference in new issue