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

24 lines
364 B
Plaintext
Raw Normal View History

2018-10-02 20:57:29 -04:00
#!/bin/sh
set -e
2018-10-04 17:14:19 -04:00
base='docker.io/tpimenta/nginx-ldap-auth'
version='v1.0.0'
image="$base:$version"
2018-10-02 20:57:29 -04:00
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"
2018-10-04 17:14:19 -04:00
docker tag "$image" "$base:latest"
docker push "$base:latest"