From 409da15ff50640f300a377cfa1b790d82931991a Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Mon, 21 Apr 2025 18:25:00 -0400 Subject: [PATCH] lol digg --- .gitlab-ci.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2df4445..55b7f25 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ stages: - Update Deployment - Create Commit - Create Merge Request + - Trigger NodeJs Tests: stage: Tests @@ -84,7 +85,7 @@ Create Commit: - Update Deployment image: siteworxpro/git:2.49.0 before_script: | - git config --global user.name "${GITLAB_USER_NAME}" + git config --global user.name "${GITLAB_USER_NAME} via Gitlab Runner" git config --global user.email "${GITLAB_USER_EMAIL}" script: | git pull origin master @@ -110,4 +111,16 @@ Create Merge Request: --data "title=Update deployment manifest with new image tags" \ --data "description=This merge request updates the deployment manifest with the new image tags." \ --data "remove_source_branch=true" \ - "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/merge_requests" \ No newline at end of file + "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/merge_requests" + +Trigger ArgoCD: + stage: Trigger + image: siteworxpro/argocd:v2.14.10 + rules: + - changes: + - argocd/deployment/* + variables: + ARGOCD_AUTH_TOKEN: ${ARGOCD_AUTH_TOKEN} + ARGOCD_SERVER: ${ARGOCD_SERVER} + script: | + argocd --grpc-web app sync ${ARGOCD_APP_NAME} \ No newline at end of file