forked from mautic/Community-Portal
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1.16 KB
/
redeploy-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Redeploy Decidim Image in Jelastic Infra
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment'
required: true
type: environment
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 }}
ENVNAME: ${{ secrets.ENVNAME }}
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 cp --tag ${inputs.TAG} --useExistingVolumes ${USE_EXISTING_VOLUME:-true}