You've already forked reloading-manager
lol digg
This commit is contained in:
@@ -4,6 +4,7 @@ stages:
|
|||||||
- Update Deployment
|
- Update Deployment
|
||||||
- Create Commit
|
- Create Commit
|
||||||
- Create Merge Request
|
- Create Merge Request
|
||||||
|
- Trigger
|
||||||
|
|
||||||
NodeJs Tests:
|
NodeJs Tests:
|
||||||
stage: Tests
|
stage: Tests
|
||||||
@@ -84,7 +85,7 @@ Create Commit:
|
|||||||
- Update Deployment
|
- Update Deployment
|
||||||
image: siteworxpro/git:2.49.0
|
image: siteworxpro/git:2.49.0
|
||||||
before_script: |
|
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}"
|
git config --global user.email "${GITLAB_USER_EMAIL}"
|
||||||
script: |
|
script: |
|
||||||
git pull origin master
|
git pull origin master
|
||||||
@@ -110,4 +111,16 @@ Create Merge Request:
|
|||||||
--data "title=Update deployment manifest with new image tags" \
|
--data "title=Update deployment manifest with new image tags" \
|
||||||
--data "description=This merge request updates the deployment manifest with the new image tags." \
|
--data "description=This merge request updates the deployment manifest with the new image tags." \
|
||||||
--data "remove_source_branch=true" \
|
--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