diff --git a/build b/build index 8e1450c..806bafb 100755 --- a/build +++ b/build @@ -2,7 +2,9 @@ set -e -image='docker.io/tpimenta/nginx-ldap-auth:latest' +base='docker.io/tpimenta/nginx-ldap-auth' +version='v1.0.0' +image="$base:$version" atexit() { docker images -q -f dangling=true | xargs -r docker rmi @@ -17,3 +19,5 @@ docker build \ "$(dirname "$0")" docker push "$image" +docker tag "$image" "$base:latest" +docker push "$base:latest" diff --git a/k8s.yaml b/k8s.yaml index 51b50b6..539ad02 100644 --- a/k8s.yaml +++ b/k8s.yaml @@ -55,7 +55,7 @@ spec: app: nginx-ldap-auth spec: containers: - - image: docker.io/tpimenta/nginx-ldap-auth:latest + - image: docker.io/tpimenta/nginx-ldap-auth:v1.0.0 name: nginx-ldap-auth command: - "nginx-ldap-auth"