Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing sed replaces #4

Open
agardnerIT opened this issue Jan 30, 2023 · 0 comments
Open

Missing sed replaces #4

agardnerIT opened this issue Jan 30, 2023 · 0 comments

Comments

@agardnerIT
Copy link
Collaborator

agardnerIT commented Jan 30, 2023

argocd/applications/yaml references a placeholder:

repoURL: 'GITHUB_REPO_TO_REPLACE'

This should probably be replaced using sed during the previous instructions.

I.e. this:

GITHUB_REPO_URL=https://github.com/agardnerit/openfeature-henriks-demo
GITHUB_USER=agardnerit
GITHUB_PAT_TOKEN=
argocd repo add $GITHUB_REPO_URL --username $GITHUB_USER --password $GITHUB_PAT_TOKEN --insecure-skip-server-verification

Becomes this:

GITHUB_REPO_URL=https://github.com/agardnerit/openfeature-henriks-demo
GITHUB_USER=agardnerit
GITHUB_PAT_TOKEN=
sed -i "s,GITHUB_REPO_TO_REPLACE,$GITHUB_REPO_URL," argocd/applications.yaml
git add argocd/applications.yaml && git commit -m "update repo url" && git push
argocd repo add $GITHUB_REPO_URL --username $GITHUB_USER --password $GITHUB_PAT_TOKEN --insecure-skip-server-verification

Note: This needs to be done on the GitHub.com fork and not a local copy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant