Skip to content

Commit

Permalink
new packages: crossplane-gcp and terraform google provider
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <[email protected]>
  • Loading branch information
imjasonh committed Feb 20, 2024
1 parent 0b69371 commit 05afaaf
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 0 deletions.
73 changes: 73 additions & 0 deletions crossplane-provider-gcp.yaml
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
41 changes: 41 additions & 0 deletions terraform-provider-google.yaml
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

0 comments on commit 05afaaf

Please sign in to comment.