Skip to content
file-plus

GitHub Action

Jelastic CLI

v0.20.0 Latest version

Jelastic CLI

file-plus

Jelastic CLI

Executes commands via Jelastic CLI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Jelastic CLI

uses: DovnarAlexander/github-actions-jelastic@v0.20.0

Learn more about this action in DovnarAlexander/github-actions-jelastic

Choose a version

GitHub action for Jelastic CLI

Performs some actions via Jelastic CLI via API

GitHub actions

Inputs

jelastic_url

RequiredJelastic API URL

jelastic_username

RequiredJelastic Username

jelastic_password

RequiredJelastic Password or API Token

task

RequiredTask to execute. More info here.

Outputs

output

Result JSON document returned from Jelastic.

Example usage

  - name: Run GetEnv command
    uses: DovnarAlexander/github-actions-jelastic@master
    with:
      jelastic_url: app.mycloud.by
      jelastic_username: ${{ secrets.JELASTIC_USERNAME }}
      jelastic_password: ${{ secrets.JELASTIC_TOKEN }}
      task: environment/control/getenvs

Local usage

Information

Docker's entrypoint expects 3+ arguments specified.

docker run --rm --env JELASTIC_URL --env JELASTIC_USERNAME --env JELASTIC_PASSWORD aliaksandrdounar/jelastic-cli:latest true true environment/control/getenvs

Where:

  • true - login to Jelastic Cloud
  • true - print json output (instead of raw from the API)
  • environment/control/getenvs - command

Preparation

export JELASTIC_URL=<jelastic_api_fqnd>
export JELASTIC_USERNAME=<your_username>
export JELASTIC_PASSWORD=<your_password>

Use from DockerHub

docker run --rm --env JELASTIC_URL --env JELASTIC_USERNAME --env JELASTIC_PASSWORD aliaksandrdounar/jelastic-cli:latest true true environment/control/getenvs

Use from GitHub

echo TOKEN | docker login https://docker.pkg.github.com -u USERNAME --password-stdin
docker run --rm --env JELASTIC_URL --env JELASTIC_USERNAME --env JELASTIC_PASSWORD docker.pkg.github.com/dovnaralexander/jelastic-docker-image/jelastic-cli:latest true true environment/control/getenvs