-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathcrossplane-provider-gcp.yaml
82 lines (71 loc) · 1.81 KB
/
crossplane-provider-gcp.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
82
package:
name: crossplane-provider-gcp
version: "1.12.0"
epoch: 3
description: Official GCP Provider for Crossplane by Upbound
copyright:
- license: Apache-2.0
dependencies:
runtime:
- terraform-provider-google
environment:
contents:
packages:
- bash
- build-base
- busybox
- curl
- docker
- go
- gzip
- jq
- kustomize
environment:
CGO_ENABLED: 0
pipeline:
- uses: git-checkout
with:
repository: https://github.com/upbound/provider-gcp
tag: v${{package.version}}
expected-commit: 83d28ed1820d6b339a51a6ada29d5cd9de251fee
recurse-submodules: true
- uses: go/bump
with:
deps: |-
golang.org/x/crypto@v0.35.0
golang.org/x/oauth2@v0.27.0
golang.org/x/net@v0.36.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-gcp
storage: provider-gcp-storage
pubsub: provider-gcp-pubsub
subpackages:
- name: crossplane-provider-gcp-${{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-gcp
strip-prefix: v
test:
pipeline:
# AUTOGENERATED
- runs: |
provider --help