Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 35034a3

Browse files
committed
Added packer
1 parent 424a15b commit 35034a3

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4200,6 +4200,17 @@
42004200
"version: \"?(?<currentValue>.*?)\"?\\n"
42014201
]
42024202
},
4203+
{
4204+
"datasourceTemplate": "github-releases",
4205+
"depNameTemplate": "hashicorp/packer",
4206+
"extractVersionTemplate": "^v(?<version>.+?)$",
4207+
"fileMatch": [
4208+
"^tools/packer/manifest.yaml$"
4209+
],
4210+
"matchStrings": [
4211+
"version: \"?(?<currentValue>.*?)\"?\\n"
4212+
]
4213+
},
42034214
{
42044215
"datasourceTemplate": "github-releases",
42054216
"depNameTemplate": "jgm/pandoc",

tools/packer/Dockerfile.template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#syntax=docker/dockerfile:1.5.2
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6+
ARG name
7+
ARG version
8+
RUN <<EOF
9+
url="https://releases.hashicorp.com/packer/${version}/packer_${version}_linux_${alt_arch}.zip"
10+
filename="$(basename "${url}")"
11+
curl --silent --location --fail --remote-name "${url}"
12+
unzip -q -o -d "${prefix}${target}/bin" "${filename}"
13+
echo "complete -C ${target}/bin/packer packer" >"${prefix}${target}/etc/profile.d/packer.sh"
14+
EOF

tools/packer/manifest.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# yaml-language-server: $schema=https://docker-setup.dille.io/schema.yaml
2+
$schema: https://docker-setup.dille.io/schema.yaml
3+
name: packer
4+
version: "1.9.1"
5+
check: ""
6+
platforms:
7+
- linux/amd64
8+
- linux/arm64
9+
tags:
10+
- org/hashicorp
11+
- category/development
12+
- lang/go
13+
- type/cli
14+
homepage: https://github.com/hashicorp/packer
15+
description: Tool for creating identical machine images for multiple platforms from a single source configuration
16+
renovate:
17+
datasource: github-releases
18+
package: hashicorp/packer
19+
extractVersion: ^v(?<version>.+?)$
20+
priority: low

0 commit comments

Comments
 (0)