remove secrets from source code
parent
f5412469eb
commit
c75bf4f9fe
2
build.sh
2
build.sh
|
@ -2,7 +2,7 @@
|
||||||
echo "Welcome!"
|
echo "Welcome!"
|
||||||
|
|
||||||
version="1.1.0"
|
version="1.1.0"
|
||||||
registryPass="***REMOVED***"
|
registryPass="***********"
|
||||||
|
|
||||||
echo "Create docker image with version $version."
|
echo "Create docker image with version $version."
|
||||||
docker image build -t "network-resurrector-frontend:$version" .
|
docker image build -t "network-resurrector-frontend:$version" .
|
||||||
|
|
|
@ -15,7 +15,7 @@ Push image to registry:
|
||||||
docker tag network-resurrector-frontend:1.0.0 alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0
|
docker tag network-resurrector-frontend:1.0.0 alpine-nexus:8500/network-resurrector/network-resurrector-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/network-resurrector/network-resurrector-frontend:1.0.0
|
docker push alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0
|
||||||
|
|
|
@ -13,12 +13,11 @@ import { ToastContainer, Slide } from "react-toastify";
|
||||||
import "react-toastify/dist/ReactToastify.css";
|
import "react-toastify/dist/ReactToastify.css";
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
//il fac pt test dar e gresit. daca va fi un singur state se va redesena toata aplicatia de fiecare data.
|
|
||||||
//testeaza ca se redeseneaza de fiecare data
|
|
||||||
const [state, dispatch] = useReducer(reducer, initialState);
|
const [state, dispatch] = useReducer(reducer, initialState);
|
||||||
const dispatchActions = useMemo(() => reducerDispatchActions(dispatch), [
|
const dispatchActions = useMemo(
|
||||||
dispatch
|
() => reducerDispatchActions(dispatch),
|
||||||
]);
|
[dispatch]
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in New Issue