forked from mautic/Community-Portal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: scripts to redeploy in developments
- Loading branch information
Hadrien Froger
committed
Feb 7, 2024
1 parent
1399db3
commit 70a4396
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,5 @@ public/uploads | |
vendor | ||
.bash_history | ||
node_modules | ||
.npm | ||
.npm | ||
.bash_history |