GitHub Action for building an ARM Template from Bicep
Перейти к файлу
Fernando de Oliveira d2a88e5c71
Merge pull request #3 from jbpaux/main
Add quotes for inputs and output paths as they can contain spaces
2022-06-18 14:17:43 -03:00
.github/workflows feature: action ci workflow 2021-09-15 17:09:17 -03:00
samples feature: action and build workflow 2021-09-15 17:08:00 -03:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md committed 2021-09-15 12:59:40 -07:00
CONTRIBUTING.md docs: CONTRIBUTING.md added 2021-09-15 17:07:30 -03:00
LICENSE LICENSE committed 2021-09-15 12:59:41 -07:00
LICENSE.md docs: LICENSE added 2021-09-15 17:06:31 -03:00
README.md fix: example usage 2021-09-16 13:06:29 -03:00
SECURITY.md SECURITY.md committed 2021-09-15 12:59:42 -07:00
SUPPORT.md docs: SUPPORT.md added 2021-09-15 17:05:53 -03:00
action.yml Add quotes for inputs and output paths as they can contain spaces 2022-06-16 11:44:29 +02:00

README.md

💪 Bicep Build Action Build

GitHub Action that builds a Bicep main file and outputs a generated ARM Template file.

When to use

The action is particularly useful for Continuous Integration scenarios where you want to validate the ARM template further on your workflow and/or publish it as an artifact.

Getting Started

Prerequisites

If your GitHub Actions workflows are running on a self-hosted runner:

  • Azure CLI 2.20.0 or later installed
  • File write permission on the runner as this action creates an ARM template file dynamically.

Usage

steps:
  - name: Bicep Build
    uses: Azure/bicep-build-action@v1.0.0
    with:
      bicepFilePath: main.bicep
      outputFilePath: azuredeploy.json

Inputs

Name Description Required Default value
bicepFilePath Bicep main file path false ./main.bicep
outputFilePath Path where the ARM template file will be created false ./azuredeploy.json

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.