Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we add an argument for this action to place environment variables into the App Service slot container? #53

Open
KalvinWei opened this issue Aug 1, 2023 · 0 comments
Labels
need-to-triage Requires investigation

Comments

@KalvinWei
Copy link

For example:

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Set up Node.js
        uses: actions/setup-node@v3
        with:
          node-version: ${{ env.NODE_VERSION }}
          cache: "yarn"
      - name: npm install, build
        run: yarn install --frozen-lockfile && yarn build
      - name: "Deploy to Azure WebApp"
        uses: azure/webapps-deploy@v2
        with:
          app-name: ${{ env.AZURE_WEBAPP_NAME }}
          publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_STAGING }}
          slot-name: ${{ env.AZURE_WEBAPP_SLOT_NAME }}
          app-settings: '{"ENV_VAR1":value, "ENV_VAR2":value}'  # add something like this to inject env vars to the container
@KalvinWei KalvinWei added the need-to-triage Requires investigation label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-to-triage Requires investigation
Projects
None yet
Development

No branches or pull requests

1 participant