This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/tests/use-cases/ci-cd-for-go-project/push.cue.fragment

15 lines
293 B
Plaintext
Raw Permalink Normal View History

// 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
}
}
}