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

Commit b469790

Browse files
committed
Added tinygo
1 parent a8b4e1e commit b469790

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4904,6 +4904,17 @@
49044904
"version: \"?(?<currentValue>.*?)\"?\\n"
49054905
]
49064906
},
4907+
{
4908+
"datasourceTemplate": "github-releases",
4909+
"depNameTemplate": "tinygo-org/tinygo",
4910+
"extractVersionTemplate": "^v(?<version>.+?)$",
4911+
"fileMatch": [
4912+
"^tools/tinygo/manifest.yaml$"
4913+
],
4914+
"matchStrings": [
4915+
"version: \"?(?<currentValue>.*?)\"?\\n"
4916+
]
4917+
},
49074918
{
49084919
"datasourceTemplate": "github-releases",
49094920
"depNameTemplate": "tektoncd/cli",

tools/tinygo/Dockerfile.template

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
mkdir -p "${prefix}/opt"
10+
curl --silent --location --fail "https://github.com/tinygo-org/tinygo/releases/download/v${version}/tinygo${version}.linux-${alt_arch}.tar.gz" \
11+
| tar --extract --gzip --directory="${prefix}/opt/" --no-same-owner
12+
ln --symbolic --relative --force "${prefix}/opt/tinygo/bin/tinygo" "${prefix}${target}/bin/tinygo"
13+
EOF

tools/tinygo/manifest.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: tinygo
2+
version: "0.27.0"
3+
check: ""
4+
platforms:
5+
- linux/amd64
6+
- linux/arm64
7+
tags:
8+
- category/development
9+
- lang/go
10+
- type/cli
11+
homepage: https://github.com/tinygo-org/tinygo
12+
description: Go compiler for small places
13+
renovate:
14+
datasource: github-releases
15+
package: tinygo-org/tinygo
16+
extractVersion: ^v(?<version>.+?)$

0 commit comments

Comments
 (0)