Skip to content

Repository env variables are empty #188

Description

@codewishofficial

This works

- name: scp files
  image: appleboy/drone-scp
  settings:
    host: example.com
    username: foo
    password: bar
    port: 22
    target: /var/www/deploy/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
    source: release.tar.gz

However, if I want to use a repository env secrets it does not work

- name: scp files
  image: appleboy/drone-scp
  environment:
    DOMAIN:
       from_secret: domain
  settings:
    host: example.com
    username: foo
    password: bar
    port: 22
    target: /var/www/deploy/${DRONE_REPO_OWNER}/${DOMAIN}
    source: release.tar.gz

Only this work, but I need to interpolate the repository secret env with other vars as in the example above

- name: scp files
  image: appleboy/drone-scp
  settings:
    host: example.com
    username: foo
    password: bar
    port: 22
    target:
     from_secret: domain
     source: release.tar.gz

Any workaround of this that I am not aware? Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions