Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
file-plus

GitHub Action

Jelastic CLI

v0.5.0

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.5.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.

Example usage

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

Local usage

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 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 environment/control/getenvs