Skip to content

Commit

Permalink
Added terraformer
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 13, 2024
1 parent 43916de commit a445dd8
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
11 changes: 11 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -8783,6 +8783,17 @@
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
"depNameTemplate": "GoogleCloudPlatform/terraformer",
"fileMatch": [
"^tools/terraformer/manifest.yaml$"
],
"matchStrings": [
"version: \"?(?<currentValue>.*?)\"?\\n"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
Expand Down
21 changes: 21 additions & 0 deletions tools/terraformer/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#syntax=docker/dockerfile:1.12.0@sha256:db1ff77fb637a5955317c7a3a62540196396d565f3dd5742e76dddbb6d75c4c5

FROM registry.gitlab.com/uniget-org/images/ubuntu:24.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
RUN --mount=type=cache,target=/var/cache/uniget/download <<EOF
url="https://github.com/GoogleCloudPlatform/terraformer/releases/download/${version}/terraformer-all-linux-amd64"
filename="$( basename "${url}" )"

check-github-release-asset "GoogleCloudPlatform/terraformer" "${version}" "${filename}"
curl --silent --show-error --location --fail --output "${uniget_cache_download}/${filename}" \
"${url}"

install --mode=0755 \
"${uniget_cache_download}/${filename}" \
"${prefix}/bin/terraformer"
EOF
29 changes: 29 additions & 0 deletions tools/terraformer/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# yaml-language-server: $schema=https://tools.uniget.dev/schema.yaml
$schema: https://tools.uniget.dev/schema.yaml
name: terraformer
license:
name: Apache License 2.0
link: https://github.com/GoogleCloudPlatform/terraformer/blob/master/LICENSE
version: "0.8.24"
check: ${binary} version | cut -d' ' -f2 | tr -d v
platforms:
- linux/amd64
- linux/arm64
tags:
- org/google
- category/operations
- lang/go
- type/cli
- cloud/aws
- cloud/azure
- cloud/google
- cloud/hetzner
- cloud/github
- cloud/gitlab
homepage: https://github.com/GoogleCloudPlatform/terraformer
repository: https://github.com/GoogleCloudPlatform/terraformer
description: Generate terraform files from existing infrastructure (reverse Terraform)
renovate:
datasource: github-releases
package: GoogleCloudPlatform/terraformer
priority: low

0 comments on commit a445dd8

Please sign in to comment.