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/image.cue.fragment

20 lines
335 B
Plaintext
Raw Permalink Normal View History

import (
"universe.dagger.io/alpine"
"universe.dagger.io/docker"
)
// Build docker image (depends on build)
image: docker.#Build & {
steps: [
alpine.#Build,
docker.#Copy & {
input: _base.output
contents: build.output
dest: "/usr/bin"
},
docker.#Set & {
config: cmd: ["</path/to/binary>"]
},
]
}