Tag version
This commit is contained in:
parent
893d85d3c6
commit
8bf61afe71
6
build
6
build
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
set -e
|
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() {
|
atexit() {
|
||||||
docker images -q -f dangling=true | xargs -r docker rmi
|
docker images -q -f dangling=true | xargs -r docker rmi
|
||||||
|
@ -17,3 +19,5 @@ docker build \
|
||||||
"$(dirname "$0")"
|
"$(dirname "$0")"
|
||||||
|
|
||||||
docker push "$image"
|
docker push "$image"
|
||||||
|
docker tag "$image" "$base:latest"
|
||||||
|
docker push "$base:latest"
|
||||||
|
|
2
k8s.yaml
2
k8s.yaml
|
@ -55,7 +55,7 @@ spec:
|
||||||
app: nginx-ldap-auth
|
app: nginx-ldap-auth
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: docker.io/tpimenta/nginx-ldap-auth:latest
|
- image: docker.io/tpimenta/nginx-ldap-auth:v1.0.0
|
||||||
name: nginx-ldap-auth
|
name: nginx-ldap-auth
|
||||||
command:
|
command:
|
||||||
- "nginx-ldap-auth"
|
- "nginx-ldap-auth"
|
||||||
|
|
Reference in a new issue