remove secrets from source code
parent
d5dc0ea80d
commit
6b0d77b618
2
build.sh
2
build.sh
|
@ -2,7 +2,7 @@
|
||||||
echo "Welcome!"
|
echo "Welcome!"
|
||||||
|
|
||||||
version="1.0.1"
|
version="1.0.1"
|
||||||
registryPass="***REMOVED***"
|
registryPass="*********"
|
||||||
|
|
||||||
echo "Create docker image with version $version."
|
echo "Create docker image with version $version."
|
||||||
docker image build -t "cdn-admin-frontend:$version" .
|
docker image build -t "cdn-admin-frontend:$version" .
|
||||||
|
|
|
@ -14,7 +14,7 @@ Push image to registry:
|
||||||
docker tag cdn-admin-frontend:1.0.0 alpine-nexus:8500/cdn/cdn-admin-frontend:1.0.0
|
docker tag cdn-admin-frontend:1.0.0 alpine-nexus:8500/cdn/cdn-admin-frontend:1.0.0
|
||||||
|
|
||||||
--login to registry
|
--login to registry
|
||||||
docker login --username=admin --password="***REMOVED***" alpine-nexus:8500
|
docker login --username=admin --password="************" alpine-nexus:8500
|
||||||
|
|
||||||
--push image
|
--push image
|
||||||
docker push alpine-nexus:8500/cdn/cdn-admin-frontend:1.0.0
|
docker push alpine-nexus:8500/cdn/cdn-admin-frontend:1.0.0
|
||||||
|
|
|
@ -33,7 +33,7 @@ function Login(props) {
|
||||||
var [error, setError] = useState(null);
|
var [error, setError] = useState(null);
|
||||||
var [activeTabId, setActiveTabId] = useState(0);
|
var [activeTabId, setActiveTabId] = useState(0);
|
||||||
var [nameValue, setNameValue] = useState("");
|
var [nameValue, setNameValue] = useState("");
|
||||||
var [loginValue, setLoginValue] = useState(***REMOVED***);
|
var [loginValue, setLoginValue] = useState("admin");
|
||||||
var [passwordValue, setPasswordValue] = useState("");
|
var [passwordValue, setPasswordValue] = useState("");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue