Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added terraformer #9045

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading