Skip to content
copy

GitHub Action

Bicep Build

v0.3.255 Latest version

Bicep Build

copy

Bicep Build

Build ARM templates using the bicep CLI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Bicep Build

uses: aliencube/[email protected]

Learn more about this action in aliencube/bicep-build-actions

Choose a version

Bicep Build Actions

This is a GitHub Actions that runs the bicep CLI to build ARM templates.

Inputs

  • files (Required): one or more .bicep files to build, delimited by a space. eg. file1 file2 file3 ... It allows wildcards for recursive build.
  • version: Version of the bicep CLI. It can be the exact version (eg. v0.3.255), wildcard (eg. v0.3.x) or latest. If omitted, latest is set as default.

Example Usage

Run Bicep Build Action for Individual Files

steps:
# Runs the bicep CLI action - individual files
- name: Run Bicep build
  uses: aliencube/[email protected]
  with:
    files: sample1.bicep sample2.bicep biceps/sample3.bicep biceps/sample4.bicep

# Checks the result
- name: Check the result
  shell: bash
  run: |
    shopt -s globstar
    ls -altR **/sample*.*

Run Bicep Build Action for Recursive Files with Wildcard

steps:
# Runs the bicep CLI action - recursive + wildcard
- name: Run Bicep build
  uses: aliencube/[email protected]
  with:
    files: '**/*.bicep'

# Checks the result
- name: Check the result
  shell: bash
  run: |
    shopt -s globstar
    ls -altR **/sample*.*

Contribution

Your contributions are always welcome! All your work should be done in your forked repository. Once you finish your work with corresponding tests, please send us a pull request onto our main branch for review.

License

Bicep Build Actions is released under MIT License

The MIT License (MIT)

Copyright (c) 2020 aliencube.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.