# Dokku

## Components

### Deploy

| name          | description                    | type   | default                                 |
| ------------- | ------------------------------ | ------ | --------------------------------------- |
| `stage`       |                                | string | `"deploy"`                              |
| `project`     | Le nom du projet Dokku         | string |                                         |
| `when`        |                                | string | `"manual"`                              |
| `environment` |                                | string | `"production"`                          |
| `url`         |                                | string | `""`                                    |
| `image`       | L'image conteneur à déployer   | string | `""`                                    |
| `remote`      | L'adresse SSH du serveur Dokku | string | `"ssh://dokku@deploy.runner.iiens.net"` |

Exemple :

```yaml
include:
  - component: $CI_SERVER_FQDN/arise/components/dokku/deploy@0.2
    inputs:
      stage: deploy
      project: itvplus
      environment: development
      url: https://dev.itvplus.iiens.net/
      image: $IMAGE_TAG_SHA
      remote: $SSH_REMOTE
```

#### Variables d'environnement

`SSH_PRIVATE_KEY` : Une clé ssh privée qui a un accès push à l'instance de Dokku.