Skip to content

Commit 3e95af7

Browse files
committed
use a custom template
1 parent 24dc6ca commit 3e95af7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,6 @@ jobs:
442442
value: "${{ secrets.PR_DEPLOYMENTS_GITHUB_OAUTH_CLIENT_SECRET }}"
443443
- name: "CODER_OAUTH2_GITHUB_ALLOWED_ORGS"
444444
value: "coder"
445-
- name: "KUBECONFIG"
446-
value: "/home/coder/.kube/config"
447445
EOF
448446
449447
- name: Install/Upgrade Helm chart
@@ -523,9 +521,8 @@ jobs:
523521
https://${{ env.PR_DEPLOYMENT_ACCESS_URL }}
524522
525523
# Create template
526-
coder templates init --id kubernetes && cd ./kubernetes/ && coder templates create -y --variable namespace=pr${{ env.PR_NUMBER }}
527-
#git clone https://github.com/matifali/coder-templates.git
528-
#cd ./coder-templates/k8s-namespace/ && coder templates create -y --variable namespace=pr${{ env.PR_NUMBER }}
524+
git clone https://github.com/matifali/coder-templates.git && cd ./coder-templates/k8s-namespace/
525+
coder templates create -y --variable namespace=pr${{ env.PR_NUMBER }}
529526
530527
# Create workspace
531528
cat <<EOF > workspace.yaml
@@ -534,7 +531,7 @@ jobs:
534531
home_disk_size: "2"
535532
EOF
536533
537-
coder create --template="kubernetes" test --rich-parameter-file ./workspace.yaml -y
534+
coder create --template="k8s-namespace" test --rich-parameter-file ./workspace.yaml -y
538535
coder stop test -y
539536
540537
- name: Send Slack notification

0 commit comments

Comments
 (0)