Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Allow environment variables in bucket name #70

Open
JP-Ellis opened this issue Apr 3, 2024 · 0 comments
Open

[feature] Allow environment variables in bucket name #70

JP-Ellis opened this issue Apr 3, 2024 · 0 comments
Assignees
Labels
0 - Backlog enhancement New feature or request

Comments

@JP-Ellis
Copy link

JP-Ellis commented Apr 3, 2024

I have a use case whereby I would like to allow a variable in the S3 bucket name. For example:

steps:
  - label: Step 1
    env:
      ENVIRONMENT: dev
    plugins:
      - nienbo/cache#v2.4.15:
          backend: s3
          id: python-312
          key: v1-{{ id }}-{{ checksum "pyproject.toml" }}
          restore-keys:
            - v1-{{ id }}
          compress: true
          s3:
            bucket: s3-cache-$ENVIRONMENT
            save-cache: true
          paths:
            - .cache/pip

I have tried using $ENVIRONMENT, $$ENVIRONMENT as well as {{ env.ENVIRONMENT }}, but none of the options seem to work unfortunately.

Is this supported through some other means? Or if not supported, could this be added?

@gencer gencer self-assigned this Apr 9, 2024
@gencer gencer added enhancement New feature or request 0 - Backlog labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - Backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants