Updated branch name and path in GitOps repo
This commit is contained in:
@ -71,7 +71,7 @@ spec:
|
|||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
value: https://gitea.marcin00.pl/pikram/user-microservice.git
|
value: https://gitea.marcin00.pl/pikram/user-microservice.git
|
||||||
- name: REPO_BRANCH
|
- name: REPO_BRANCH
|
||||||
value: argo-workflows
|
value: argoworkflow-fluxcd
|
||||||
args:
|
args:
|
||||||
- |
|
- |
|
||||||
git clone --depth 1 --branch "${REPO_BRANCH}" --single-branch "${REPO_URL}" repo
|
git clone --depth 1 --branch "${REPO_BRANCH}" --single-branch "${REPO_URL}" repo
|
||||||
@ -139,7 +139,7 @@ spec:
|
|||||||
- name: DEPLOY_REPO_URL
|
- name: DEPLOY_REPO_URL
|
||||||
value: ssh://git@srv22.mikr.us:20343/pikram/user-microservice-deploy.git
|
value: ssh://git@srv22.mikr.us:20343/pikram/user-microservice-deploy.git
|
||||||
- name: DEPLOY_REPO_BRANCH
|
- name: DEPLOY_REPO_BRANCH
|
||||||
value: argo-deploy
|
value: argoworkflow-fluxcd
|
||||||
- name: CI_COMMIT_SHA
|
- name: CI_COMMIT_SHA
|
||||||
value: "{{inputs.parameters.git-sha}}"
|
value: "{{inputs.parameters.git-sha}}"
|
||||||
args:
|
args:
|
||||||
@ -152,7 +152,7 @@ spec:
|
|||||||
git config --global user.name "argo[bot]"
|
git config --global user.name "argo[bot]"
|
||||||
git config --global user.email "argo@marcin00.pl"
|
git config --global user.email "argo@marcin00.pl"
|
||||||
git clone --depth 1 --branch $DEPLOY_REPO_BRANCH --single-branch $DEPLOY_REPO_URL repo
|
git clone --depth 1 --branch $DEPLOY_REPO_BRANCH --single-branch $DEPLOY_REPO_URL repo
|
||||||
cd repo
|
cd repo/apps/user-microservice
|
||||||
awk -v commit="$CI_COMMIT_SHA" '
|
awk -v commit="$CI_COMMIT_SHA" '
|
||||||
$0 ~ /name:[[:space:]]*api/ { in_api_container = 1; print; next }
|
$0 ~ /name:[[:space:]]*api/ { in_api_container = 1; print; next }
|
||||||
in_api_container && $0 ~ /^[[:space:]]*image:[[:space:]]*/ {
|
in_api_container && $0 ~ /^[[:space:]]*image:[[:space:]]*/ {
|
||||||
|
Reference in New Issue
Block a user