Skip to content

Commit fcc384d

Browse files
committed
chore: manage dogfood template using coderd provider
1 parent 91a74f0 commit fcc384d

33 files changed

+379
-375
lines changed

.github/workflows/dogfood.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787

8888
- name: Terraform init and validate
8989
run: |
90-
cd dogfood
90+
cd dogfood/contents
9191
terraform init -upgrade
9292
terraform validate
9393
@@ -101,16 +101,10 @@ jobs:
101101
id: message
102102
run: echo "pr_title=$(git log --format=%s -n 1 ${{ github.sha }})" >> $GITHUB_OUTPUT
103103

104-
- name: "Get latest Coder binary from the server"
105-
if: github.ref == 'refs/heads/main'
106-
run: |
107-
curl -fsSL "https://dev.coder.com/bin/coder-linux-amd64" -o "./coder"
108-
chmod +x "./coder"
109-
110104
- name: "Push template"
111105
if: github.ref == 'refs/heads/main'
112106
run: |
113-
./coder templates push $CODER_TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name=$CODER_TEMPLATE_VERSION --message="$CODER_TEMPLATE_MESSAGE"
107+
terraform apply -auto-approve
114108
env:
115109
# Consumed by Coder CLI
116110
CODER_URL: https://dev.coder.com
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)