Skip to content

Commit

Permalink
disable biuprcc
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Aug 7, 2024
1 parent e4575a9 commit 88bd536
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
if [ "${GITHUB_REF}" == "refs/heads/master" ]; then
LAST_COMMIT_MSG=$(git log -1 --pretty=format:"%s") &&\
cd instances &&\
for INSTANCE_NAME in `ls --hide *.txt`; do
for INSTANCE_NAME in `ls --hide=*.txt --hide=*.json --hide=*.disabled`; do
if echo "${LAST_COMMIT_MSG}" | grep -- --update-instances >/dev/null && echo "${LAST_COMMIT_MSG}" | grep $INSTANCE_NAME >/dev/null; then
echo "updating instance: $INSTANCE_NAME (requested manually using --update-instances)" &&\
curl --user "${JENKINS_USER}:${JENKINS_TOKEN}" -X POST "${JENKINS_UPDATE_INSTANCE_URL}?INSTANCE_NAME=${INSTANCE_NAME}"
Expand Down
7 changes: 7 additions & 0 deletions docs/DISABLE_INSTANCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Temporarily Disable an instance

Rename the instance folder under `instances/` to `instances/INSTANCE_NAME.disabled` and commit the change.

Remove the instance namespace in Kubernetes

Re-apply hasadna-iac terraform to apply the changes (See repo hasadna/hasadna-iac for more details)
File renamed without changes.

0 comments on commit 88bd536

Please sign in to comment.