Closed agardnerIT closed 1 year ago
set YOURHANDLE=YourGitHubUserNameHere
set YOURREPOSITORY=YourGitHubRepoHere
docker run --rm -v %cd%:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/%YOURHANDLE%/%YOURREPOSITORY%_g" /files/gitops/app-of-apps.yaml
docker run --rm -v %cd%:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/%YOURHANDLE%/%YOURREPOSITORY%_g" /files/gitops/applications/argo-config.yaml
docker run --rm -v %cd%:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/%YOURHANDLE%/%YOURREPOSITORY%_g" /files/gitops/applications/demo-application.yaml
docker run --rm -v %cd%:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/%YOURHANDLE%/%YOURREPOSITORY%_g" /files/gitops/applications/ingress-nginx.yaml
docker run --rm -v %cd%:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/%YOURHANDLE%/%YOURREPOSITORY%_g" /files/gitops/applications/cert-manager.yaml
export YOURHANDLE=YourGitHubUserNameHere
export YOURREPOSITORY=YourGitHubRepoHere
docker run --rm -v $pwd:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/$YOURHANDLE/$YOURREPOSITORY_g" /files/gitops/app-of-apps.yaml
docker run --rm -v $pwd:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/$YOURHANDLE/$YOURREPOSITORY_g" /files/gitops/applications/argo-config.yaml
docker run --rm -v $pwd:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/$YOURHANDLE/$YOURREPOSITORY_g" /files/gitops/applications/demo-application.yaml
docker run --rm -v $pwd:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/$YOURHANDLE/$YOURREPOSITORY_g" /files/gitops/applications/ingress-nginx.yaml
docker run --rm -v $pwd:/files busybox:stable sed -i "s_github.com/AloisReitbauer/progressiveDelivery-masterclass_github.com/$YOURHANDLE/$YOURREPOSITORY_g" /files/gitops/applications/cert-manager.yaml
Neither
find
norsed
are available on windows. Need a multi-platform approach. Furthermore, windows doesn't include any native solution.It appears that only
5
files need to be altered:/demoapp/gitops/app-of-apps.yaml
/demoapp/gitops/applications/argo-config.yaml
/demoapp/gitops/applications/demo-application.yaml
/demoapp/gitops/applications/ingress-nginx.yaml
/demoapp/gitops/applications/cert-manager.yaml