@@ -6,7 +6,7 @@ includes:
6
6
7
7
vars :
8
8
# Application configuration
9
- APP_NAME : ' {{.REPLICATED_APP | default "wg-easy"}}'
9
+ APP_SLUG : ' {{.REPLICATED_APP | default "wg-easy"}}'
10
10
11
11
# Cluster configuration
12
12
CLUSTER_NAME : ' {{.CLUSTER_NAME | default "test-cluster"}}'
@@ -126,6 +126,7 @@ tasks:
126
126
dependencies-update :
127
127
desc : Update Helm dependencies for all charts
128
128
silent : false
129
+ run : once
129
130
cmds :
130
131
- echo "Updating Helm dependencies for all charts..."
131
132
- |
@@ -276,20 +277,24 @@ tasks:
276
277
done
277
278
278
279
- echo "Release files prepared in ./release/ directory"
280
+ deps :
281
+ - dependencies-update
279
282
280
283
release-create :
281
284
desc : Create and promote a release using the Replicated CLI
282
285
silent : false
283
286
vars :
284
287
CHANNEL : ' {{.CHANNEL | default "Unstable"}}'
285
288
RELEASE_NOTES : ' {{.RELEASE_NOTES | default "Release created via task release-create"}}'
289
+ requires :
290
+ vars : [APP_SLUG, VERSION]
286
291
cmds :
287
- - echo "Creating and promoting release for $APP_NAME to channel $ CHANNEL..."
292
+ - echo "Creating and promoting release for {{.APP_SLUG}} to channel {{. CHANNEL}} ..."
288
293
- |
289
294
# Create and promote the release in one step
290
295
echo "Creating release from files in ./release directory..."
291
- replicated release create --app $APP_NAME --yaml-dir ./release --release-notes "$ RELEASE_NOTES" --promote $ CHANNEL --version $ VERSION
292
- echo "Release version $ VERSION created and promoted to channel $ CHANNEL"
296
+ replicated release create --app {{.APP_SLUG}} --yaml-dir ./release --release-notes "{{. RELEASE_NOTES}} " --promote {{. CHANNEL}} --version {{. VERSION}}
297
+ echo "Release version {{. VERSION}} created and promoted to channel {{. CHANNEL}} "
293
298
deps :
294
299
- release-prepare
295
300
@@ -338,12 +343,12 @@ tasks:
338
343
status :
339
344
- |
340
345
# Check if the application tarball has already been downloaded and extracted
341
- gcloud compute ssh {{.VM_NAME}} --project={{.GCP_PROJECT}} --zone={{.GCP_ZONE}} --command="test -d ./{{.APP_NAME }}" &>/dev/null
346
+ gcloud compute ssh {{.VM_NAME}} --project={{.GCP_PROJECT}} --zone={{.GCP_ZONE}} --command="test -d ./{{.APP_SLUG }}" &>/dev/null
342
347
cmds :
343
348
- task : utils:gcp-operations
344
349
vars :
345
350
OPERATION : " setup-embedded"
346
- APP_NAME : ' {{.APP_NAME }}'
351
+ APP_SLUG : ' {{.APP_SLUG }}'
347
352
CHANNEL : ' {{.CHANNEL}}'
348
353
AUTH_TOKEN : ' {{.AUTH_TOKEN}}'
349
354
GCP_PROJECT : ' {{.GCP_PROJECT}}'
0 commit comments