-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gerd Oberlechner <[email protected]>
- Loading branch information
Showing
14 changed files
with
124 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Install azure-cli | ||
description: Installs the azure cli. | ||
runs: | ||
using: composite | ||
steps: | ||
- name: install azure-cli | ||
run: | | ||
sudo apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg | ||
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null | ||
AZ_REPO=$(lsb_release -cs) | ||
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list | ||
sudo apt-get update | ||
sudo apt-get install -y azure-cli | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: 'Azure CLI, Go, and Make' | ||
description: 'Install Azure CLI, Go, and Make, and run a script' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: 'Prepare workspace' | ||
run: mkdir -p /workspace/bin | ||
|
||
- name: 'Copy Azure CLI' | ||
uses: docker://mcr.microsoft.com/azure-cli:2.64.0 | ||
with: | ||
args: | | ||
/bin/bash -c " | ||
cp -r /usr/local/bin/az /workspace/bin/ && | ||
cp -r /usr/local/az /workspace/bin/ | ||
" | ||
volumes: | ||
- name: workspace | ||
path: /workspace | ||
|
||
- name: 'Build templatize' | ||
uses: docker://golang:1.23 | ||
with: | ||
args: | | ||
/bin/bash -c " | ||
go build -o /workspace/templatize ./tooling/templatize | ||
" | ||
env: | ||
GO111MODULE: 'on' | ||
volumes: | ||
- name: workspace | ||
path: /workspace | ||
|
||
- name: 'Install Make' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y make | ||
- name: 'Run script' | ||
run: ${{ inputs.script }} | ||
shell: bash | ||
|
||
inputs: | ||
script: | ||
description: 'The script to run' | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
fmt: | ||
set -e; \ | ||
FILES="$$(find . -type f -name "*.bicep*")"; \ | ||
for file in $$FILES; do \ | ||
echo "az bicep format --file $${file}"; \ | ||
az bicep format --file $$file; \ | ||
done | ||
.PHONY: fmt | ||
|
||
lint: | ||
set -e; \ | ||
FILES="$$(find . -type f -name "*.bicep*")"; \ | ||
for file in $$FILES; do \ | ||
echo "az bicep lint --file $${file}"; \ | ||
az bicep lint --file $$file; \ | ||
done | ||
.PHONY: lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters