forked from lucaslorentz/caddy-docker-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpush-images-windows.sh
executable file
·24 lines (17 loc) · 1.03 KB
/
push-images-windows.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
set -e
docker login -u lucaslorentz -p "$DOCKER_PASSWORD"
docker push lucaslorentz/caddy-docker-proxy:ci-nanoserver-1803
if [[ "${RELEASE_VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
echo "Releasing version ${RELEASE_VERSION}..."
PATCH_VERSION=$(echo $RELEASE_VERSION | cut -c2-)
MINOR_VERSION=$(echo $PATCH_VERSION | cut -d. -f-2)
docker login -u lucaslorentz -p "$DOCKER_PASSWORD"
# nanoserver-1803
docker tag lucaslorentz/caddy-docker-proxy:ci-nanoserver-1803 lucaslorentz/caddy-docker-proxy:nanoserver-1803
docker tag lucaslorentz/caddy-docker-proxy:ci-nanoserver-1803 lucaslorentz/caddy-docker-proxy:${PATCH_VERSION}-nanoserver-1803
docker tag lucaslorentz/caddy-docker-proxy:ci-nanoserver-1803 lucaslorentz/caddy-docker-proxy:${MINOR_VERSION}-nanoserver-1803
docker push lucaslorentz/caddy-docker-proxy:nanoserver-1803
docker push lucaslorentz/caddy-docker-proxy:${PATCH_VERSION}-nanoserver-1803
docker push lucaslorentz/caddy-docker-proxy:${MINOR_VERSION}-nanoserver-1803
fi