-
Notifications
You must be signed in to change notification settings - Fork 7
61 lines (51 loc) · 1.5 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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@v2
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: Install Bicep
shell: pwsh
run: |
az config set bicep.use_binary_from_path=False
az bicep install
- name: Bicep build
shell: pwsh
run: |
/home/runner/.azure/bin/bicep build bicep/main.bicep --outfile azuredeploy.json
- name: Github Checkin
uses: EndBug/add-and-commit@v9
with:
message: "Initialize Software Install"
add: "."
- 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"