mirror of
https://github.com/mcuadros/ascode
synced 2024-11-23 09:21:58 +01:00
14 lines
365 B
Plaintext
14 lines
365 B
Plaintext
load("experimental/docker", "docker")
|
|
|
|
p = provider("docker", "2.7.0", "foo")
|
|
|
|
# using docker.image semver can be used to choose the docker image, `
|
|
golang = docker.image("golang", "1.13.x")
|
|
|
|
foo = p.resource.container("foo")
|
|
foo.name = "foo"
|
|
|
|
# version queries the docker repository and returns the correct tag.
|
|
foo.image = golang.version(full=True)
|
|
|
|
print(hcl(p)) |