Skip to content

Commit f831944

Browse files
committed
Switched to APP_ID
1 parent f3deb93 commit f831944

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

cleanup.sh

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
## Access token needs delete rights which is not included in the base repo rights
2-
export INSTANCE_GIT_REPO_TOKEN=
3-
export INSTANCE_GIT_REPO_OWNER=cgrant
1+
## Required Vars
2+
3+
# APP_ID
44

5+
# INSTANCE_GIT_REPO_TOKEN
6+
# INSTANCE_GIT_REPO_OWNER
7+
8+
## Access token needs delete rights which is not included in the base repo rights
59
## Delete Trigger
610
TRIGGER_NAME=${APP_ID}-webhook-trigger
711
gcloud alpha builds triggers delete ${TRIGGER_NAME} -q
@@ -15,7 +19,7 @@ gcloud secrets delete ${SECRET_NAME} -q
1519
export GIT_TOKEN=${INSTANCE_GIT_REPO_TOKEN}
1620
export GIT_USERNAME=${INSTANCE_GIT_REPO_OWNER}
1721
export BASE_DIR=${PWD}
18-
export GIT_CMD=${BASE_DIR}/cp-templates/cicd-pipeline/util/git/gh.sh
19-
export GIT_ASKPASS=${BASE_DIR}/cp-templates/cicd-pipeline/util/git/git-ask-pass.sh
22+
export GIT_CMD=${BASE_DIR}/cp-utils/git/gh.sh
23+
export GIT_ASKPASS=${BASE_DIR}/cp-utils/git/git-ask-pass.sh
2024
${GIT_CMD} delete ${APP_ID}
2125

createApp.sh

-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
# INSTANCE_GIT_REPO_TOKEN
88
# INSTANCE_GIT_REPO_OWNER
9-
# INSTANCE_GIT_REPO_NAME
109

1110

1211

@@ -25,7 +24,6 @@ echo REGION=${REGION}
2524
echo APP_ID=${APP_ID}
2625
echo INSTANCE_GIT_REPO_OWNER=${INSTANCE_GIT_REPO_OWNER}
2726
echo GIT_USERNAME=${GIT_USERNAME}
28-
echo INSTANCE_GIT_REPO_NAME=${INSTANCE_GIT_REPO_NAME}
2927
echo INSTANCE_GIT_REPO_TOKEN=${INSTANCE_GIT_REPO_TOKEN}
3028
echo GIT_TOKEN=$GIT_TOKEN
3129
echo TEMPLATE_FOLDER=${TEMPLATE_FOLDER}

createWebhook.sh

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
# INSTANCE_GIT_REPO_TOKEN
99
# INSTANCE_GIT_REPO_OWNER
10-
# INSTANCE_GIT_REPO_NAME
1110

1211
# API_KEY
1312

0 commit comments

Comments
 (0)