Skip to content

Commit 648b137

Browse files
authored
Use short channel name on events Heroku & S3 deploy (#161)
1 parent 35c27d5 commit 648b137

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.taskcluster.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ tasks:
3232
else: 'dev'
3333
else: 'dev'
3434

35-
bucket_channel:
36-
# Special case for the frontend upload on AWS S3, where the production bucket is named 'prod'
35+
channel_short:
36+
# Special case where naming is limited:
37+
# * for the frontend upload on AWS S3, where the production bucket is named 'prod'
38+
# * on Heroku for the events runtime, where the production app is named 'prod'
3739
$if: 'tasks_for == "github-push"'
3840
then:
3941
$if: 'event.ref == "refs/heads/production"'
@@ -361,7 +363,7 @@ tasks:
361363
- taskboot
362364
- deploy-heroku
363365
- --heroku-app
364-
- "code-coverage-events-${channel}"
366+
- "code-coverage-events-${channel_short}"
365367
- worker:public/code-coverage-events.tar
366368
env:
367369
TASKCLUSTER_SECRET: "project/relman/code-coverage/deploy-${channel}"
@@ -456,7 +458,7 @@ tasks:
456458
- --artifact-folder
457459
- public/frontend
458460
- --bucket
459-
- "codecoverage-${bucket_channel}-site-static-website"
461+
- "codecoverage-${channel_short}-site-static-website"
460462
scopes:
461463
- "secrets:get:project/relman/code-coverage/deploy-${channel}"
462464
metadata:

0 commit comments

Comments
 (0)