Infra - Release #3
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
name: Infra - Release | |
on: | |
workflow_dispatch: | |
env: | |
CLI_VERSION: latest | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- name: Github Checkout | |
uses: actions/checkout@v4 | |
- name: Azure Login | |
uses: Azure/login@v1 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
enable-AzPSSession: true | |
environment: azurecloud | |
allow-no-subscriptions: false | |
- name: Github Checkin | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: "Initialize Software Install" | |
add: "." | |
- name: Build ARM Template | |
uses: Azure/[email protected] | |
with: | |
bicepFilePath: bicep/main.bicep | |
outputFilePath: azuredeploy.json | |
- name: Bump version and push tag | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
- name: Find Latest Tag | |
uses: oprypin/[email protected] | |
id: latest | |
with: | |
repository: ${{ github.repository }} | |
- uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.latest.outputs.tag }} | |
artifacts: "azuredeploy.json" |