@@ -245,10 +245,8 @@ tasks:
245245 find ./charts -maxdepth 2 -mindepth 2 -type d -name replicated | while read chartDir; do
246246 echo $chartDir
247247 parent=$(basename $(dirname $chartDir))
248-
249248 helmChartName="helmChart-$parent.yaml"
250249 export version=$(yq -r '.version' $chartDir/../Chart.yaml )
251-
252250 yq '.spec.chart.chartVersion = strenv(version) | .spec.chart.chartVersion style="single"' $chartDir/$helmChartName | tee release/$helmChartName
253251 done
254252
@@ -291,18 +289,18 @@ tasks:
291289 silent : false
292290 run : once
293291 vars :
294- CHANNEL : ' {{.CHANNEL | default "Unstable"}}'
295- VERSION : ' {{.VERSION | default "0.0.1"}}'
292+ RELEASE_CHANNEL : ' {{.RELEASE_CHANNEL | default "Unstable"}}'
293+ RELEASE_VERSION : ' {{.RELEASE_VERSION | default "0.0.1"}}'
296294 RELEASE_NOTES : ' {{.RELEASE_NOTES | default "Release created via task release-create"}}'
297295 requires :
298- vars : [APP_SLUG, VERSION ]
296+ vars : [APP_SLUG, RELEASE_CHANNEL, RELEASE_VERSION ]
299297 cmds :
300- - echo "Creating and promoting release for {{.APP_SLUG}} to channel {{.CHANNEL }}..."
298+ - echo "Creating and promoting release for {{.APP_SLUG}} to channel {{.RELEASE_CHANNEL }}..."
301299 - |
302300 # Create and promote the release in one step
303301 echo "Creating release from files in ./release directory..."
304- replicated release create --app {{.APP_SLUG}} --yaml-dir ./release --release-notes "{{.RELEASE_NOTES}}" --promote {{.CHANNEL }} --version {{.VERSION }}
305- echo "Release version {{.VERSION }} created and promoted to channel {{.CHANNEL }}"
302+ replicated release create --app {{.APP_SLUG}} --yaml-dir ./release --release-notes "{{.RELEASE_NOTES}}" --promote {{.RELEASE_CHANNEL }} --version {{.RELEASE_VERSION }}
303+ echo "Release version {{.RELEASE_VERSION }} created and promoted to channel {{.RELEASE_CHANNEL }}"
306304 deps :
307305 - release-prepare
308306
@@ -313,7 +311,7 @@ tasks:
313311 vars :
314312 CUSTOMER_NAME : ' {{.CUSTOMER_NAME | default "test-customer"}}'
315313 CUSTOMER_EMAIL :
' {{.CUSTOMER_EMAIL | default "[email protected] "}}' 316- CHANNEL : ' {{.CHANNEL | default "Unstable"}}'
314+ RELEASE_CHANNEL : ' {{.RELEASE_CHANNEL | default "Unstable"}}'
317315 LICENSE_TYPE : ' {{.LICENSE_TYPE | default "dev"}}'
318316 EXPIRES_IN : ' {{.EXPIRES_IN | default ""}}'
319317 requires :
@@ -338,7 +336,7 @@ tasks:
338336 --app {{.APP_SLUG}} \
339337 --name {{.CUSTOMER_NAME}} \
340338 --email {{.CUSTOMER_EMAIL}} \
341- --channel {{.CHANNEL }} \
339+ --channel {{.RELEASE_CHANNEL }} \
342340 --type {{.LICENSE_TYPE}} \
343341 --output json"
344342
@@ -391,7 +389,7 @@ tasks:
391389 desc : Setup Replicated embedded cluster on the GCP VM
392390 silent : false
393391 vars :
394- CHANNEL : ' {{.CHANNEL | default "Unstable"}}'
392+ RELEASE_CHANNEL : ' {{.RELEASE_CHANNEL | default "Unstable"}}'
395393 AUTH_TOKEN : ' {{.AUTH_TOKEN | default "2usDXzovcJNcpn54yS5tFQVNvCq"}}'
396394 deps :
397395 - gcp-vm-create
@@ -404,7 +402,7 @@ tasks:
404402 vars :
405403 OPERATION : " setup-embedded"
406404 APP_SLUG : ' {{.APP_SLUG}}'
407- CHANNEL : ' {{.CHANNEL }}'
405+ RELEASE_CHANNEL : ' {{.RELEASE_CHANNEL }}'
408406 AUTH_TOKEN : ' {{.AUTH_TOKEN}}'
409407 GCP_PROJECT : ' {{.GCP_PROJECT}}'
410408 GCP_ZONE : ' {{.GCP_ZONE}}'
@@ -476,7 +474,7 @@ tasks:
476474 - echo "Cleaning complete!"
477475
478476 full-test-cycle :
479- desc : Create cluster, get kubeconfig, expose ports, update dependencies, deploy charts, test, and delete
477+ desc : Create cluster, get kubeconfig, expose ports, update dependencies, deploy charts, test, and delete, and clean up build artifacts
480478 silent : false
481479 cmds :
482480 - task : cluster-create
@@ -486,3 +484,4 @@ tasks:
486484 - task : helm-install
487485 - task : test
488486 - task : cluster-delete
487+ - task : clean
0 commit comments