remove secrets from source code
parent
f5412469eb
commit
c75bf4f9fe
2
build.sh
2
build.sh
|
@ -2,7 +2,7 @@
|
|||
echo "Welcome!"
|
||||
|
||||
version="1.1.0"
|
||||
registryPass="***REMOVED***"
|
||||
registryPass="***********"
|
||||
|
||||
echo "Create docker image with version $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
|
||||
|
||||
--login to registry
|
||||
docker login --username=admin --password="***REMOVED***" alpine-nexus:8500
|
||||
docker login --username=admin --password="***********" alpine-nexus:8500
|
||||
|
||||
--push image
|
||||
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";
|
||||
|
||||
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 dispatchActions = useMemo(() => reducerDispatchActions(dispatch), [
|
||||
dispatch
|
||||
]);
|
||||
const dispatchActions = useMemo(
|
||||
() => reducerDispatchActions(dispatch),
|
||||
[dispatch]
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue