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
Tiago Augusto Pimenta 8c9485202c Draft
2018-10-17 21:37:22 -03:00

24 lines
364 B
Bash
Executable file

#!/bin/sh
set -e
base='docker.io/tpimenta/nginx-ldap-auth'
version='v1.1.0'
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"