Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Latest commit

 

History

History
50 lines (50 loc) · 1.77 KB

README.md

File metadata and controls

50 lines (50 loc) · 1.77 KB

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