-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathcrossplane-provider-azure.yaml
81 lines (70 loc) · 1.84 KB
/
crossplane-provider-azure.yaml
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
72
73
74
75
76
77
78
79
80
81
package:
name: crossplane-provider-azure
version: "1.11.2"
epoch: 0
description: Official Azure Provider for Crossplane by Upbound
copyright:
- license: Apache-2.0
dependencies:
runtime:
- terraform-provider-azurerm
environment:
contents:
packages:
- bash
- build-base
- busybox
- curl
- docker
- go
- gzip
- jq
environment:
CGO_ENABLED: 0
pipeline:
- uses: git-checkout
with:
repository: https://github.com/upbound/provider-azure
tag: v${{package.version}}
expected-commit: 1945b70b7c598a802f66d9f5a9c5a39f21d63968
recurse-submodules: true
- uses: go/bump
with:
deps: |-
golang.org/x/oauth2@v0.27.0
- runs: |
# This downloads a tool called `up` which is no longer open source, but is required to build the provider.
curl -sL "https://cli.upbound.io" | sh
mv up /usr/bin/
up version
make
mkdir -p "${{targets.destdir}}"/usr/bin/
GOARCH=$(go env GOARCH)
cp ./_output/bin/linux_${GOARCH}/monolith "${{targets.destdir}}"/usr/bin/provider
- uses: strip
data:
- name: packages
items:
family: 'provider-family-azure'
authorization: 'provider-azure-authorization'
managedidentity: 'provider-azure-managedidentity'
sql: 'provider-azure-sql'
storage: 'provider-azure-storage'
subpackages:
- name: crossplane-provider-azure-${{range.key}}
range: packages
pipeline:
- runs: |
up xpkg xp-extract xpkg.upbound.io/upbound/${{range.value}}:v${{package.version}}
mkdir -p "${{targets.subpkgdir}}"
gunzip out.gz -c > "${{targets.subpkgdir}}"/package.yaml
update:
enabled: true
github:
identifier: upbound/provider-azure
strip-prefix: v
test:
pipeline:
# AUTOGENERATED
- runs: |
provider --help