Skip to content

Commit 2e5c6e9

Browse files
authored
Publish CompreFace VM image to Azure Marketplace
1 parent d84d783 commit 2e5c6e9

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: (Azure) Сompreface AIB image
3+
on:
4+
workflow_dispatch:
5+
jobs:
6+
build-image:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
12+
- name: Login via Az module
13+
uses: azure/login@v1
14+
with:
15+
creds: ${{secrets.AZURE_CREDENTIALS}}
16+
17+
- name: BUILD-CUSTOM-VM-IMAGE
18+
uses: azure/build-vm-image@v0
19+
with:
20+
resource-group-name: 'myResourceGroup'
21+
managed-identity: 'myImageBuilderIdentity'
22+
location: 'eastus2'
23+
source-os-type: 'linux'
24+
source-image: Canonical:UbuntuServer:18.04-LTS:latest
25+
customizer-script: |
26+
sh /tmp/workflow-artifacts/install.sh
27+
dist-type: 'SharedImageGallery'
28+
dist-resource-id: '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/AppTeam/images/ImagesWithApp'
29+
dist-location: 'eastus2'

0 commit comments

Comments
 (0)