Giter VIP home page Giter VIP logo

composite-azure-deploy-webapp's Introduction

composite-azure-deploy-webapp

This a composite action wrapping the following functionality

  1. Render environment specific variables with jnus/json-variables
  2. Substitute variables in configuration with microsoft/substitute-variables
  3. Deploy artifacts to an Azure web app with azure/webapps-deploy

Usage

Reference the composite action with a full sha like the following to avoid breaking changes in the repo:

segesdk/composite-azure-deploy-webapp@0914465681697fe709557a118d94525546

or like the following, to always use latest version by referencing @main

segesdk/composite-azure-deploy-webapp@main

Parameters

Input variable Description
publishPath Publishing path of the build artifacts
environment Target environment to deploy to. Used for rendering environment variables and deployment to Azure
variableFile Full path to json file with variables for rendering with jnus/json-variables
secrets Serialized json string for github secrets, used to render environment variables. Syntax: '${{ toJson(secrets) }}'
configurationFile Full path to configuration file to perform variable substitution
webAppName Name of the target Azure web app
azureCredentials Service principal credentials

Usage example

- id: Deployment
       uses: segesdk/composite-azure-deploy-webapp@0914465681697fe709557a118d945255464c9626
       with:
         publishPath: ${{env.PUBLISH_PATH}}
         environment: Dev
         variableFile: '${{env.PUBLISH_PATH}}/variables.json'
         secrets: '${{ toJson(secrets) }}'
         configurationFile: '${{env.PUBLISH_PATH}}/appsettings.json'
         webAppName:  ${{env.PROJECT_NAME}}-dev-api-wa
         azureCredentials: ${{ secrets.AZURE_SEGES_SYSUDV_UDV_SECRET }}

Gotchas

https://confluence.seges.dk/display/SYS/How+to+do+variable+substitution+in+GitHub

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.