remove secrets from source code

master
Tudor Stanciu 2022-11-22 19:39:58 +02:00
parent f5412469eb
commit c75bf4f9fe
3 changed files with 6 additions and 7 deletions

View File

@ -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" .

View File

@ -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

View File

@ -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 (
<>