You've already forked reloading-manager
lol digg
This commit is contained in:
@@ -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"
|
||||
"${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}
|
||||
Reference in New Issue
Block a user