Improve go use case example according to Gerhard's review

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2022-03-17 14:55:34 +01:00
committed by Vasek - Tom C
parent 2d3acc61e0
commit 6fe49a0294
10 changed files with 167 additions and 90 deletions

View File

@@ -0,0 +1,14 @@
// Push image to remote registry (depends on image)
push: {
// Docker username
_dockerUsername: "<my_username>"
docker.#Push & {
"image": image.output
dest: "\(_dockerUsername)/<my_repository>"
auth: {
username: "\(_dockerUsername)"
secret: client.env.DOCKER_PASSWORD
}
}
}