This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
nginx-ldap-auth/build
2018-11-14 20:42:31 -02:00

24 lines
364 B
Bash
Executable file

#!/bin/sh
set -e
base='docker.io/tpimenta/nginx-ldap-auth'
version='v1.0.3'
image="$base:$version"
atexit() {
docker images -q -f dangling=true | xargs -r docker rmi
}
trap atexit INT TERM EXIT
docker build \
--force-rm \
--no-cache \
--tag "$image" \
"$(dirname "$0")"
docker push "$image"
docker tag "$image" "$base:latest"
docker push "$base:latest"