Redeploy Decidim Image in Jelastic Infra #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Redploy Decidim Image in Jelastic Infra | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
container: | |
image: mwienk/jelastic-cli | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Redeploy container in Jelastic | |
env: | |
JELASTIC_LOGIN: ${{ secrets.JELASTIC_LOGIN }} | |
JELASTIC_PASSWORD: ${{ secrets.JELASTIC_PASSWORD }} | |
JELASTIC_HOSTER: ${{ secrets.JELASTIC_HOSTER }} | |
ENVNAME: ${{ secrets.ENVNAME }} | |
NODE_GROUP: ${{ secrets.NODE_GROUP }} # Default to cp if not set | |
TAG: ${{ secrets.TAG }} # Default to latest if not set | |
USE_EXISTING_VOLUME: ${{ secrets.USE_EXISTING_VOLUME }} # Default to true if not set | |
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} |