2021-08-01 02:29:29 +03:00
|
|
|
#!/bin/bash
|
|
|
|
echo "Welcome!"
|
|
|
|
|
2021-08-01 03:05:20 +03:00
|
|
|
version="1.0.1"
|
2021-08-01 02:29:29 +03:00
|
|
|
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!"
|