-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathcrossplane-provider-aws.yaml
84 lines (73 loc) · 2.25 KB
/
crossplane-provider-aws.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
83
84
package:
name: crossplane-provider-aws
version: 1.1.0
epoch: 0
description: Official AWS Provider for Crossplane by Upbound
copyright:
- license: Apache-2.0
dependencies:
runtime:
- terraform-provider-aws
environment:
contents:
packages:
- bash
- build-base
- busybox
- curl
- go
- gzip
- kustomize
- up
environment:
CGO_ENABLED: 0
pipeline:
- uses: git-checkout
with:
expected-commit: 069ec0af97168db26c1801e782b6337879f5c018
repository: https://github.com/upbound/provider-aws
tag: v${{package.version}}
- 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-aws
# List from: https://github.com/gitops-bridge-dev/gitops-bridge-argocd-control-plane-template/blob/main/charts/addons/crossplane/resources/values.yaml
cloudfront: provider-aws-cloudfront
cloudwatchlogs: provider-aws-cloudwatchlogs
dynamodb: provider-aws-dynamodb
ec2: provider-aws-ec2
eks: provider-aws-eks
firehose: provider-aws-firehose
iam: provider-aws-iam
kms: provider-aws-kms
lambda: provider-aws-lambda
rds: provider-aws-rds
s3: provider-aws-s3
sns: provider-aws-sns
sqs: provider-aws-sqs
subpackages:
- name: crossplane-provider-aws-${{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-aws
strip-prefix: v