Skip to content

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

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 ?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions