Skip to content

Commit 90f0f45

Browse files
committed
[GAZ-226] push ph-ee-CI-chat-to-chart-repo
1 parent 848c50d commit 90f0f45

1 file changed

Lines changed: 20 additions & 10 deletions

File tree

.circleci/config.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,16 @@ jobs:
175175
helm dep up ph-ee-env-labs/helm/g2p-sandbox-fynarfin-SIT
176176
helm package ph-ee-env-labs/helm/g2p-sandbox-fynarfin-SIT
177177
helm repo index .
178-
echo "$CERT_FILE" | base64 --decode > b64encoded.pem
179-
chmod 400 b64encoded.pem
180-
ssh -i b64encoded.pem -o StrictHostKeyChecking=No ec2-user@13.233.68.128 sudo mkdir -p /apps/apache-tomcat-7.0.82/webapps/ROOT/images$JIRA_STORY_DIR/ph-ee-g2psandbox-fynarfin$JIRA_STORY
181-
scp -o StrictHostKeyChecking=No -i b64encoded.pem index.yaml ph-ee-g2psandbox-fynarfin-0.2.0$JIRA_STORY.tgz ec2-user@13.233.68.128:~/
182-
ssh -i b64encoded.pem -o StrictHostKeyChecking=No ec2-user@13.233.68.128 sudo mv -t /apps/apache-tomcat-7.0.82/webapps/ROOT/images$JIRA_STORY_DIR/ph-ee-g2psandbox-fynarfin$JIRA_STORY index.yaml ph-ee-g2psandbox-fynarfin-0.2.0$JIRA_STORY.tgz
178+
179+
git clone https://github.com/openMF/helm-charts.git
180+
mkdir -p helm-charts/payment-hub/images$JIRA_STORY_DIR/ph-ee-g2psandbox-fynarfin$JIRA_STORY
181+
cp -t helm-charts/payment-hub/images$JIRA_STORY_DIR/ph-ee-g2psandbox-fynarfin$JIRA_STORY index.yaml ph-ee-g2psandbox-fynarfin-0.2.0$JIRA_STORY.tgz
182+
cd helm-charts
183+
git config --global user.email "manoj@mifos.org"
184+
git config --global user.name "Manoj-CI"
185+
git add --a
186+
git commit -m "pushing ph-ee-g2psandbox-fynarfin$JIRA_STORY"
187+
git push https://$HELM_GIT_USER:$HELM_GIT_PAT@github.com/openMF/helm-charts.git master
183188
build-and-host-g2p-sandbox-security:
184189
docker:
185190
- image: cimg/python:3.10
@@ -219,11 +224,16 @@ jobs:
219224
helm dep up helm/g2p-sandbox-security
220225
helm package helm/g2p-sandbox-security
221226
helm repo index .
222-
echo "$CERT_FILE" | base64 --decode > b64encoded.pem
223-
chmod 400 b64encoded.pem
224-
ssh -i b64encoded.pem -o StrictHostKeyChecking=No ec2-user@13.233.68.128 sudo mkdir -p /apps/apache-tomcat-7.0.82/webapps/ROOT/images$JIRA_STORY_DIR/ph-ee-g2psandbox-security$JIRA_STORY
225-
scp -o StrictHostKeyChecking=No -i b64encoded.pem index.yaml ph-ee-g2psandbox-security-0.0.0$JIRA_STORY.tgz ec2-user@13.233.68.128:~/
226-
ssh -i b64encoded.pem -o StrictHostKeyChecking=No ec2-user@13.233.68.128 sudo mv -t /apps/apache-tomcat-7.0.82/webapps/ROOT/images$JIRA_STORY_DIR/ph-ee-g2psandbox-security$JIRA_STORY index.yaml ph-ee-g2psandbox-security-0.0.0$JIRA_STORY.tgz
227+
228+
git clone https://github.com/openMF/helm-charts.git
229+
mkdir -p helm-charts/payment-hub/images$JIRA_STORY_DIR/ph-ee-g2psandbox-security$JIRA_STORY
230+
cp -t helm-charts/payment-hub/images$JIRA_STORY_DIR/ph-ee-g2psandbox-security$JIRA_STORY index.yaml ph-ee-g2psandbox-security-0.0.0$JIRA_STORY.tgz
231+
cd helm-charts
232+
git config --global user.email "manoj@mifos.org"
233+
git config --global user.name "Manoj-CI"
234+
git add --a
235+
git commit -m "pushing ph-ee-g2psandbox-fynarfin$JIRA_STORY"
236+
git push https://$HELM_GIT_USER:$HELM_GIT_PAT@github.com/openMF/helm-charts.git master
227237
minikube-run-helm-upgrade-and-helm-test:
228238
machine:
229239
image: ubuntu-2004:current

0 commit comments

Comments
 (0)