Skip to content

Commit

Permalink
trying new things
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaiShalevRH committed Nov 27, 2024
1 parent 48c2cae commit 9cd7454
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions scaffolder-templates/build/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ update_pipelinerun:
COMMIT_ID=$(git rev-parse --short HEAD)
git config --global user.email "$COMMIT_AUTHOR_EMAIL"
git config --global user.name "$COMMIT_AUTHOR_NAME"
while [ -z "$PROJECT_ACCESS_TOKEN" ]; do
echo "Waiting for PROJECT_ACCESS_TOKEN to be set..."
sleep 10
done
echo "PROJECT_ACCESS_TOKEN is set to: $PROJECT_ACCESS_TOKEN"
git remote set-url origin https://token:$PROJECT_ACCESS_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH.git
cd argocd
Expand Down
2 changes: 1 addition & 1 deletion scaffolder-templates/gitlab-workflow/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ spec:
links:
- title: Bootstrap the GitOps Resources
icon: github
url: ${{ parameters.gitlabHost }}/${{ parameters.orgName }}/${{ parameters.repoName }}-gitops/tree/main/bootstrap
url: ${{ steps.publishWorkflow.output.remoteUrl }}-gitops/tree/main/bootstrap
- title: Open the Source Code Repository
icon: github
url: ${{ steps.publishWorkflow.output.remoteUrl }}
Expand Down

0 comments on commit 9cd7454

Please sign in to comment.