Skip to content

Redeploy Decidim Image in Jelastic Infra #5

Redeploy Decidim Image in Jelastic Infra

Redeploy Decidim Image in Jelastic Infra #5

Workflow file for this run

name: Redeploy Decidim Image in Jelastic Infra
on:
workflow_dispatch:
inputs:
ENVNAME:
description: 'Environment (`dev-community-portal` or `mautic-decidim`)'
required: true
default: 'dev-community-portal' # You can set a default value or leave it empty.
TAG:
description: 'Image Tag to redeploy'
required: true
default: 'latest' # You can set a default value or make it required without a default.
jobs:
redeploy:
runs-on: ubuntu-latest
container:
image: mwienk/jelastic-cli
steps:
- name: Redeploy container in Jelastic
env:
JELASTIC_LOGIN: ${{ secrets.JELASTIC_LOGIN }}
JELASTIC_PASSWORD: ${{ secrets.JELASTIC_PASSWORD }}
JELASTIC_HOSTER: ${{ secrets.JELASTIC_HOSTER }}
NODE_GROUP: ${{ secrets.NODE_GROUP }} # Default to cp if not set
USE_EXISTING_VOLUME: ${{ secrets.USE_EXISTING_VOLUME }} # Default to true if not set
HOME: /root
run: |
/root/jelastic/users/authentication/signin --login $JELASTIC_LOGIN --password $JELASTIC_PASSWORD --platformUrl $JELASTIC_HOSTER
/root/jelastic/environment/control/redeploycontainersbygroup --envName $ENVNAME --nodeGroup ${NODE_GROUP:-cp} --tag ${TAG:-latest} --useExistingVolumes ${USE_EXISTING_VOLUME:-true}