-
Notifications
You must be signed in to change notification settings - Fork 7
71 lines (68 loc) · 2.35 KB
/
update-vm-offer.yml
File metadata and controls
71 lines (68 loc) · 2.35 KB
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
62
63
64
65
66
67
68
69
70
71
# Copyright (c) IBM Corporation.
# Copyright (c) Microsoft Corporation.
name: update vm offer
on:
workflow_dispatch:
inputs:
offerId:
description: 'Offer id'
required: true
planId:
description: 'Plan id'
required: true
imageVersionNumber:
description: 'The new version of the image'
required: true
osDiskSasUrl:
description: 'The OS Disk SAS URL'
required: true
dataDiskSasUrl:
description: 'The Data Disk SAS URL'
required: true
imageType:
description: 'The type of the image'
required: true
default: 'x64Gen1'
operatingSystemFamily:
description: 'The OS family'
required: true
default: 'linux'
operatingSystemType:
description: 'The OS type'
required: true
default: 'redHat'
env:
offerId: ${{ github.event.inputs.offerId }}
planId: ${{ github.event.inputs.planId }}
imageVersionNumber: ${{ github.event.inputs.imageVersionNumber }}
osDiskSasUrl: ${{ github.event.inputs.osDiskSasUrl }}
dataDiskSasUrl: ${{ github.event.inputs.dataDiskSasUrl }}
imageType: ${{ github.event.inputs.imageType }}
operatingSystemFamily: ${{ github.event.inputs.operatingSystemFamily }}
operatingSystemType: ${{ github.event.inputs.operatingSystemType }}
clientId: ${{ secrets.CLIENT_ID }}
secretValue: ${{ secrets.SECRET_VALUE }}
tenantId: ${{ secrets.TENANT_ID }}
offerType: "vm_image_offer"
jobs:
update_artifact_job:
runs-on: ubuntu-latest
name: A job to update Partner Center vm offer artifact
steps:
- name: Update offer artifact
id: update-offer-artifact
uses: microsoft/microsoft-partner-center-github-action@v3.2
with:
offerId: ${{ env.offerId }}
planId: ${{ env.planId }}
offerType: ${{ env.offerType }}
imageVersionNumber: ${{ env.imageVersionNumber }}
osDiskSasUrl: ${{ env.osDiskSasUrl }}
dataDiskSasUrl: ${{ env.dataDiskSasUrl }}
imageType: ${{ env.imageType }}
operatingSystemFamily: ${{ env.operatingSystemFamily }}
operatingSystemType: ${{ env.operatingSystemType }}
clientId: ${{ env.clientId }}
secretValue: ${{ env.secretValue }}
tenantId: ${{ env.tenantId }}
verbose: "true"