Skip to content

Commit

Permalink
fix(hack): do not fail setting secret if it doesn't exists yet (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmann authored Jan 21, 2022
1 parent 17b3e37 commit 05afba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/util-set-github-org
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ sed -i "s/GITHUB_ORG=.*/GITHUB_ORG=\"$1\"/" $ROOT/components/has/kustomization.y
if [ -n "$MY_GITHUB_TOKEN" ]; then
echo
echo "Setting gitHub token"
oc create -n application-service secret generic has-github-token --from-literal=token="$MY_GITHUB_TOKEN" --dry-run=client -o yaml | oc replace -f -
oc create -n application-service secret generic has-github-token --from-literal=token="$MY_GITHUB_TOKEN" --dry-run=client -o yaml | oc apply -f -
fi

0 comments on commit 05afba8

Please sign in to comment.