Giter Club home page Giter Club logo

azure-publish-profile-github-action's Introduction

Azure Publish profile

Build

This action retrieves the publish profile used for publishing in Azure WebApp and Azure Functions.

Requirement

You will need to install azure cli

Installation

How to install the Azure CLI

brew update && brew install azure-cli

Creating Service Principals

This action uses a service principal, so it must be created in advance. To create a service principal with authority over subscriptions, do the following

az ad sp create-for-rbac --name <Service principal name> --role contributor --scopes /subscriptions/<Subscription ID>

In this case, the "contributor" privilege is inherited by all resources in the subscription.

{
  "appId": "<App ID>",
  "displayName": "<Name>",
  "password": "<Password>",
  "tenant": "<Tenant ID>"
}

You will get a response like the above, save the appId, password, and tenant in this response. Set each saved value to secrets in GitHub Actions. Example: SERVICE_PRINCIPAL_APP_ID/SERVICE_PRINCIPAL_PASSWORD/SERVICE_PRINCIPAL_TENANT_ID

Usage

- uses: akiojin/azure-publish-profile-github-action@v3
  id: publish-profile
  with:
    app-id: ${{ secrets.SERVICE_PRINCIPAL_APP_ID }}
    password: ${{ secrets.SERVICE_PRINCIPAL_PASSWORD }}
    tenant: ${{ secrets.SERVICE_PRINCIPAL_TENANT_ID }}
    subscription: "Azure subscription 1"
    app-name: <AppName>
    resource-group: <Resource Group>

Arguments

Name Required Type Description
app-id true string Service Principal App ID.
password true string Service Principal Password.
tenant true string Service Principal Tenant ID.
subscription true string Subscription ID.
app-name true string Name of the WebApp or Azure Functions from which to obtain the publishing profile.
resource-group true string Resource group ID

Outputs

Name Type Description
publish-profile string

License

Any contributions made under this project will be governed by the MIT License.

azure-publish-profile-github-action's People

Contributors

dependabot[bot] avatar akiojin avatar github-actions[bot] avatar

Watchers

 avatar  avatar

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.