ping/_composition: use latest release in interop-latest (#37)

This commit is contained in:
Laurent Senta 2022-09-06 17:34:25 +02:00 committed by GitHub
parent b640639f86
commit 0d238710c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 19 deletions

View File

@ -1,5 +1,5 @@
[metadata] [metadata]
name = "go-rust-cross-version" name = "go-rust-cross-version-{{ or $.Env.InteropTarget "-" }}-{{ or $.Env.GitReference "" }}"
[global] [global]
plan = "libp2p/ping" plan = "libp2p/ping"
@ -14,38 +14,26 @@
go_proxy_url = "https://proxy.golang.org" go_proxy_url = "https://proxy.golang.org"
{{ with (load_resource "./go.toml") }} {{ with (load_resource "./go.toml") }}
{{ with .master }} {{ with (index .groups 0) }}
[[groups]] [[groups]]
id = "go-master" id = "go-latest-{{ .Id }}"
instances = { count = 1 } instances = { count = 1 }
builder = "docker:go" builder = "docker:go"
[groups.build] [groups.build]
selectors = ['{{ .Selector }}'] selectors = ['{{ .Selector }}']
[[groups.build.dependencies]]
module = "github.com/libp2p/go-libp2p"
version = "master"
[groups.build_config] [groups.build_config]
path = "./go/" path = "./go/"
build_base_image = 'golang:{{ .GoVersion }}-buster' build_base_image = 'golang:{{ .GoVersion }}-buster'
modfile = "{{ .Modfile }}" modfile = "{{ .Modfile }}"
[groups.build_config.dockerfile_extensions]
# deal with dependency changes in master until we create the new vx.y.z instance
pre_build = """
RUN cd ${PLAN_DIR} && \
go mod download github.com/libp2p/go-libp2p && \
go mod tidy -compat={{ .GoVersion }}
"""
{{ end }} {{ end }}
{{ if eq $.Env.InteropTarget "go" }} {{ if eq $.Env.InteropTarget "go" }}
{{ if $.Env.GitReference }} {{ if $.Env.GitReference }}
{{ with .custom }} {{ with .custom }}
[[groups]] [[groups]]
id = "custom-go" id = "go-custom-{{ $.Env.GitReference }}"
instances = { count = 1 } instances = { count = 1 }
builder = "docker:go" builder = "docker:go"
@ -77,9 +65,9 @@
{{ end }} {{ end }}
{{ with (load_resource "./rust.toml") }} {{ with (load_resource "./rust.toml") }}
{{ with .master }} {{ with (index .groups 0) }}
[[groups]] [[groups]]
id = "rust-master" id = "rust-latest-{{ .Id }}"
instances = { count = 1 } instances = { count = 1 }
builder = "docker:generic" builder = "docker:generic"
@ -94,7 +82,7 @@
{{ if $.Env.GitReference }} {{ if $.Env.GitReference }}
{{ with .custom }} {{ with .custom }}
[[groups]] [[groups]]
id = "custom-rust" id = "rust-custom-{{ $.Env.GitReference }}"
instances = { count = 1 } instances = { count = 1 }
builder = "docker:generic" builder = "docker:generic"