Hi! I’m trying to use {{ .Branch }}
in one of the params from a step of the aws-s3
orb.
This is what my configuration looks like:
...
- aws-s3/sync:
from: coverage
to: 's3://my-bucket/coverage/{{ .Branch }}'
arguments: |
--acl public-read \
--cache-control "max-age=86400"
overwrite: true
Coverage is the folder I’m trying to update, and I want to update one per branch.
This is the orb I’m using https://circleci.com/orbs/registry/orb/circleci/aws-s3
And this is the error I get:
#!/bin/bash -eo pipefail
aws s3 sync \
coverage s3://padbol-matcher/coverage/{{ .Branch }} --delete \
--acl public-read \
--cache-control "max-age=86400"
Unknown options: .Branch,}}
So clearly, that line is not being transpiled by CircleCi, anyone has any ideas on how to solve it?
Thanks in advance!