2022-01-18 19:09:29 +02:00
|
|
|
#!/bin/bash
|
|
|
|
echo "Welcome!"
|
|
|
|
|
2022-05-14 20:59:41 +03:00
|
|
|
version="1.1.0"
|
2022-11-22 19:39:58 +02:00
|
|
|
registryPass="***********"
|
2022-01-18 19:09:29 +02:00
|
|
|
|
|
|
|
echo "Create docker image with version $version."
|
|
|
|
docker image build -t "network-resurrector-frontend:$version" .
|
|
|
|
|
|
|
|
echo "Tag docker image with registry prefix."
|
|
|
|
docker tag network-resurrector-frontend:$version alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$version
|
|
|
|
|
|
|
|
echo "Login to alpine-nexus registry."
|
|
|
|
docker login --username=admin --password=$registryPass alpine-nexus:8500
|
|
|
|
|
|
|
|
echo "Push image network-resurrector-frontend:$version to registry."
|
|
|
|
docker push alpine-nexus:8500/network-resurrector/network-resurrector-frontend:$version
|
|
|
|
|
|
|
|
echo "DONE!"
|