1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-26 06:01:08 +01:00
ascode/_examples/docker.star
2020-03-21 00:10:22 +01:00

12 lines
353 B
Plaintext

load("experimental/docker", "docker")
p = tf.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)