File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -58,26 +58,38 @@ jobs:
58
58
59
59
deploy_template :
60
60
needs : build_image
61
- if : github.ref == 'refs/heads/main'
62
61
runs-on : ubuntu-latest
63
62
steps :
64
63
- name : Checkout
65
64
uses : actions/checkout@v4
66
65
66
+ - name : Setup Terraform
67
+ uses : ./.github/actions/setup-tf
68
+
69
+ - name : Terraform init and validate
70
+ run : |
71
+ cd dogfood
72
+ terraform init -upgrade
73
+ terraform validate
74
+
67
75
- name : Get short commit SHA
76
+ if : github.ref == 'refs/heads/main'
68
77
id : vars
69
78
run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
70
79
71
80
- name : Get latest commit title
81
+ if : github.ref == 'refs/heads/main'
72
82
id : message
73
83
run : echo "pr_title=$(git log --format=%s -n 1 ${{ github.sha }})" >> $GITHUB_OUTPUT
74
84
75
85
- name : " Get latest Coder binary from the server"
86
+ if : github.ref == 'refs/heads/main'
76
87
run : |
77
88
curl -fsSL "https://dev.coder.com/bin/coder-linux-amd64" -o "./coder"
78
89
chmod +x "./coder"
79
90
80
91
- name : " Push template"
92
+ if : github.ref == 'refs/heads/main'
81
93
run : |
82
94
./coder templates push $CODER_TEMPLATE_NAME --directory $CODER_TEMPLATE_DIR --yes --name=$CODER_TEMPLATE_VERSION --message="$CODER_TEMPLATE_MESSAGE" --variable jfrog_url=${{ secrets.JFROG_URL }}
83
95
env :
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ module "git-clone" {
103
103
version = " 1.0.2"
104
104
agent_id = coder_agent. dev . id
105
105
url = " https://github.com/coder/coder"
106
- path = local. repo_base_dir
106
+ base_dir = local. repo_base_dir
107
107
}
108
108
109
109
module "personalize" {
You can’t perform that action at this time.
0 commit comments