-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new packages: crossplane-gcp and terraform google provider
Signed-off-by: Jason Hall <[email protected]>
- Loading branch information
Showing
2 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package: | ||
name: crossplane-provider-gcp | ||
version: 0.41.1 | ||
epoch: 0 | ||
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 | ||
- go | ||
- gzip | ||
- kustomize | ||
- up | ||
environment: | ||
CGO_ENABLED: 0 | ||
|
||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
repository: https://github.com/upbound/provider-aws | ||
tag: v${{package.version}} | ||
expected-commit: fa6c33621c717a4b190f169f0d2d5211ec5a703c | ||
|
||
- 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-gcp | ||
# List from: https://github.com/gitops-bridge-dev/gitops-bridge-argocd-control-plane-template/tree/main/bootstrap/control-plane/addons/aws | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package: | ||
name: terraform-provider-google | ||
version: 5.16.0 | ||
epoch: 0 | ||
description: Terraform GCP provider | ||
copyright: | ||
- license: MPL-2.0 | ||
dependencies: | ||
runtime: | ||
- terraform | ||
- terraform-compat | ||
- terraform-local-provider-config | ||
|
||
environment: | ||
environment: | ||
CGO_ENABLED: 0 | ||
|
||
pipeline: | ||
- uses: git-checkout | ||
with: | ||
repository: https://github.com/hashicorp/terraform-provider-google | ||
tag: v${{package.version}} | ||
expected-commit: d4a4e1efa6457a8a3d1b9f38cf9cb9e50e41dcca | ||
|
||
- uses: go/build | ||
with: | ||
packages: . | ||
output: terraform-provider-google | ||
ldflags: -s -w | ||
|
||
- runs: | | ||
GOARCH=$(go env GOARCH) | ||
mkdir -p "${{targets.destdir}}"/terraform/provider-mirror/registry.terraform.io/hashicorp/google/${{package.version}}/linux_${GOARCH}/ | ||
ln -s "${{targets.destdir}}"/usr/bin/terraform-provider-google \ | ||
"${{targets.destdir}}"/terraform/provider-mirror/registry.terraform.io/hashicorp/google/${{package.version}}/linux_${GOARCH}/terraform-provider-google_v${{package.version}}_x5 | ||
update: | ||
enabled: true | ||
github: | ||
identifier: hashicorp/terraform-provider-google | ||
strip-prefix: v |