network-resurrector/scripts/build.sh

19 lines
676 B
Bash
Raw Normal View History

2022-01-18 19:09:29 +02:00
#!/bin/bash
echo "Welcome!"
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."
2022-12-29 22:47:15 +02:00
docker image build --build-arg APP_VERSION=$version -t "network-resurrector-frontend:$version" .
2022-01-18 19:09:29 +02:00
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!"