73
73
74
74
build :
75
75
needs : pr_commented
76
+ if : false
76
77
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
77
78
env :
78
79
DOCKER_CLI_EXPERIMENTAL : " enabled"
@@ -120,7 +121,8 @@ jobs:
120
121
121
122
deploy :
122
123
needs : [build, pr_commented]
123
- if : needs.build.result == 'success'
124
+ # if: needs.build.result == 'success'
125
+ if : true
124
126
runs-on : " ubuntu-latest"
125
127
env :
126
128
CODER_IMAGE_TAG : ${{ needs.pr_commented.outputs.CODER_IMAGE_TAG }}
@@ -162,6 +164,7 @@ jobs:
162
164
spec:
163
165
tls:
164
166
- hosts:
167
+ - "${{ secrets.PR_DEPLOYMENTS_DOMAIN }}"
165
168
- "*.${{ secrets.PR_DEPLOYMENTS_DOMAIN }}"
166
169
secretName: pr${{ env.PR_NUMBER }}-tls
167
170
rules:
@@ -223,6 +226,18 @@ jobs:
223
226
run : |
224
227
sleep 30
225
228
229
+ - name : Get Coder binary
230
+ run : |
231
+ set -euxo pipefail
232
+ ARCH="$(arch)"
233
+ PLATFORM="$(uname | tr '[:upper:]' '[:lower:]')"
234
+ DEST="${HOME}/coder"
235
+
236
+ mkdir -p "$(dirname ${DEST})"
237
+ curl -fsSL "${{ env.PR_DEPLOYMENT_ACCESS_URL }}/bin/coder-${PLATFORM}-${ARCH}" -o "${DEST}"
238
+ chmod +x "${DEST}"
239
+ "${DEST}" version
240
+
226
241
- name : Create first user, template and workspace
227
242
id : setup_deployment
228
243
run : |
@@ -231,7 +246,7 @@ jobs:
231
246
# Create first user
232
247
233
248
# create a masked random password 12 characters long
234
- password=$(openssl rand -base64 6 | tr -d "=+/" | cut -c1-12)
249
+ password=$(openssl rand -base64 16 | tr -d "=+/" | cut -c1-12)
235
250
236
251
# add mask so that the password is not printed to the logs
237
252
echo "::add-mask::$password"
0 commit comments