You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, an environment variable is necessary for the app to deploy/run correctly (e.g DB credentials).
I suggest adding a separate step right after creating the app that might look like this.
The condition for when to run this step can also depend on whether any ENV_VARIABLEs have been configured
- name: Set up DE application environment
shell: bash
if: github.event.action != 'closed'
run: |
IFS = $VAR_SEPERATOR
for env in $(read -ra env <<< $ENV_VARIABLES) ; do
de --no-keyfile apps update --name ${{ env.APP_NAME }} --add-environment-variable $env
done
env:
DASH_ENTERPRISE_HOST: ${{ vars.DASH_ENTERPRISE_URL }}
DASH_ENTERPRISE_USERNAME: ${{ vars.DASH_ENTERPRISE_USERNAME }}
DASH_ENTERPRISE_PASSWORD: ${{ secrets.DASH_ENTERPRISE_PASSWORD }}
APP_NAME: ${{ vars.APP_NAME }}
ENV_VARIABLES: ${{ secrets.ENV_VARIABLES }}
VAR_SEPERATOR: ${{ vars.VAR_SEPERATOR }}
The text was updated successfully, but these errors were encountered:
In some cases, an environment variable is necessary for the app to deploy/run correctly (e.g DB credentials).
I suggest adding a separate step right after creating the app that might look like this.
The condition for when to run this step can also depend on whether any ENV_VARIABLEs have been configured
The text was updated successfully, but these errors were encountered: