GitHub Action
Jelastic CLI
v0.20.0
Latest version
Performs some actions via Jelastic CLI via API
RequiredJelastic API URL
RequiredJelastic Username
RequiredJelastic Password or API Token
RequiredTask to execute. More info here.
Result JSON document returned from Jelastic.
- 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
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 Cloudtrue
- print json output (instead of raw from the API)environment/control/getenvs
- command
export JELASTIC_URL=<jelastic_api_fqnd>
export JELASTIC_USERNAME=<your_username>
export JELASTIC_PASSWORD=<your_password>
docker run --rm --env JELASTIC_URL --env JELASTIC_USERNAME --env JELASTIC_PASSWORD aliaksandrdounar/jelastic-cli:latest true true environment/control/getenvs
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