-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathcrossplane-provider-azure.yaml
73 lines (62 loc) · 1.86 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
package:
name: crossplane-provider-azure
version: 0.42.1
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
- go
- gzip
- up
environment:
CGO_ENABLED: 0
pipeline:
- uses: git-checkout
with:
repository: https://github.com/upbound/provider-azure
tag: v${{package.version}}
expected-commit: a21a5428186f7dac0eef571a2f4b156185c2faf2
- runs: |
# `make` downloads `up`, unless we move our prebuilt `up` to where it expects it.
GOARCH=$(go env GOARCH)
UP_VERSION=$(up --version)
echo "Using up ${UP_VERSION}"
# They use hostarch instead of goarch here which uses aarch64 instead of arm64
hostarch=$(uname -m)
mkdir -p ./.cache/tools/linux_${hostarch}
cp $(which up) ./.cache/tools/linux_${hostarch}/up-${UP_VERSION}
make UP_VERSION=${UP_VERSION}
mkdir -p "${{targets.destdir}}"/usr/bin/
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