Skip to content

Commit

Permalink
Merge pull request #1454 from snyk/fix/internal-deploy-process
Browse files Browse the repository at this point in the history
fix: repair file copying in internal deploy process [OI-100]
  • Loading branch information
jonnyowenpowell authored Feb 20, 2024
2 parents 16fbb51 + 58f9cda commit c42bbbb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/circleci-jobs/prepare_to_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LATEST_TAG=${LATEST_TAG_WITH_V:1}

# Config git
git config --global user.email "k-m@example.com"
git config --global user.name "K-M Deploy Boy"
git config --global user.name "K-M Deploy Bot"

# Clone repo
git clone https://$GH_TOKEN@github.com/snyk/$KUBERNETES_MONITOR_DEPLOYER_REPO.git
Expand All @@ -16,7 +16,7 @@ git clone https://$GH_TOKEN@github.com/snyk/$KUBERNETES_MONITOR_DEPLOYER_REPO.gi
cp -r snyk-monitor/* $KUBERNETES_MONITOR_DEPLOYER_REPO/helm

# Replace Chart.yaml with the Chart.yaml from the deployer repo
echo $KUBERNETES_MONITOR_DEPLOYER_REPO/Chart.yaml >> $KUBERNETES_MONITOR_DEPLOYER_REPO/helm/Chart.yaml
cat $KUBERNETES_MONITOR_DEPLOYER_REPO/Chart.yaml > $KUBERNETES_MONITOR_DEPLOYER_REPO/helm/Chart.yaml

# Create environment values file(s)
cat >$KUBERNETES_MONITOR_DEPLOYER_REPO/helm/values/$PRODUCTION_YAML_FILE_NAME.yaml <<EOF
Expand Down Expand Up @@ -53,8 +53,7 @@ metadata:
EOF

# Add extra values
echo $KUBERNETES_MONITOR_DEPLOYER_REPO/extra-production-values.yaml > $KUBERNETES_MONITOR_DEPLOYER_REPO/helm/values/$PRODUCTION_YAML_FILE_NAME.yaml

cat $KUBERNETES_MONITOR_DEPLOYER_REPO/extra-production-values.yaml >> $KUBERNETES_MONITOR_DEPLOYER_REPO/helm/values/$PRODUCTION_YAML_FILE_NAME.yaml

cd $KUBERNETES_MONITOR_DEPLOYER_REPO
git commit --allow-empty -am "feat: deploy k-m $LATEST_TAG_WITH_V"
Expand Down

0 comments on commit c42bbbb

Please sign in to comment.