network-resurrector-frontend/build.sh

19 lines
645 B
Bash
Raw Normal View History

2022-01-18 19:09:29 +02:00
#!/bin/bash
echo "Welcome!"
2022-05-09 03:06:52 +03:00
version="1.1.0"
2022-01-18 19:09:29 +02:00
registryPass="***REMOVED***"
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!"