cdn-frontend/build.sh

19 lines
563 B
Bash
Raw Normal View History

2021-08-01 02:29:29 +03:00
#!/bin/bash
echo "Welcome!"
version="1.0.0"
registryPass="***REMOVED***"
echo "Create docker image with version $version."
docker image build -t "cdn-admin-frontend:$version" .
2021-08-01 02:36:57 +03:00
echo "Tag docker image with registry prefix."
2021-08-01 02:29:29 +03:00
docker tag cdn-admin-frontend:$version alpine-nexus:8500/cdn/cdn-admin-frontend:$version
echo "Login to alpine-nexus registry."
docker login --username=admin --password=$registryPass alpine-nexus:8500
2021-08-01 02:31:49 +03:00
echo "Push image cdn-admin-frontend:$version to registry."
2021-08-01 02:29:29 +03:00
docker push alpine-nexus:8500/cdn/cdn-admin-frontend:$version
echo "DONE!"