mirror of
https://dev.azure.com/tstanciu94/CDN/_git/CDN_Frontend
synced 2025-06-21 19:24:34 +03:00
add build.sh
This commit is contained in:
parent
5776a11047
commit
98a281922b
19
build.sh
Normal file
19
build.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/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" .
|
||||
|
||||
echo "Tag docker image."
|
||||
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
|
||||
|
||||
echo "push image cdn-admin-frontend:$version to registry."
|
||||
docker push alpine-nexus:8500/cdn/cdn-admin-frontend:$version
|
||||
|
||||
echo "DONE!"
|
Loading…
x
Reference in New Issue
Block a user