Skip to content

[IMPROVEMENT]Use CD/CI Variables for Deployer #3314

@plexmaniax

Description

@plexmaniax

Am I right, there is no option to use CD/CI Variables in deployer, we always need a file like project.yaml where secrets are saved in plain text?

I'll tried it this way

host('staging')
->set('labels', ['stage' => 'staging'])
->set('hostname', getenv('SSH_HOST'))
->set('remote_user', getenv('SSH_USER'))
->set('http_user', getenv('SSH_USER'))
->set('deploy_path', getenv('DEPLOY_PATH'))
->set('port', (int) getenv('SSH_PORT'))
->set('bin/php', function() {
return getenv('REMOTE_PHP_BINARY');
})

But it seems a little bit unhandy. Is there a way to reuse CD/CI Variables not only as DOTENV ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions