Samagra-Development / devops

0 stars 0 forks source link

Accept the flags for deployment as repository variables #22

Closed singhalkarun closed 5 months ago

singhalkarun commented 5 months ago

Default values if the variable is not provided as repository variable should be as follows:

ENABLE_FORCE_RECREATE=1 DISABLE_REMOVE_ORPHANS=0 DISABLE_ANSI=1 ENABLE_GIT_PULL=1

Accept these variables in https://github.com/Samagra-Development/devops/blob/main/.github/workflows/deploy.yaml and pass as argument to the webhook and use in this file https://github.com/Samagra-Development/devops/blob/main/scripts/webhook/deploy.sh

singhalkarun commented 5 months ago

Disclaimer: If we don't send any value, it will fail as it will be invalid json. So, sending a default value is a must.