2022-05-14 19:56:46 +03:00
|
|
|
#!/bin/bash
|
|
|
|
echo "Welcome!"
|
|
|
|
|
|
|
|
version="1.2.0"
|
2022-11-26 16:49:27 +02:00
|
|
|
registryPass="******************"
|
2022-05-14 19:56:46 +03:00
|
|
|
|
|
|
|
echo "Create docker image with version $version."
|
|
|
|
docker image build -t "reverse-proxy-frontend:$version" .
|
|
|
|
|
|
|
|
echo "Tag docker image with registry prefix."
|
|
|
|
docker tag reverse-proxy-frontend:$version alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:$version
|
|
|
|
|
|
|
|
echo "Login to alpine-nexus registry."
|
|
|
|
docker login --username=admin --password=$registryPass alpine-nexus:8500
|
|
|
|
|
|
|
|
echo "Push image reverse-proxy-frontend:$version to registry."
|
|
|
|
docker push alpine-nexus:8500/reverse-proxy/reverse-proxy-frontend:$version
|
|
|
|
|
|
|
|
echo "DONE!"
|