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:
committed by
Vasek - Tom C
parent
2d3acc61e0
commit
6fe49a0294
22
docs/tests/use-cases/ci-cd-for-go-project/image.cue.fragment
Normal file
22
docs/tests/use-cases/ci-cd-for-go-project/image.cue.fragment
Normal file
@@ -0,0 +1,22 @@
|
||||
import (
|
||||
"universe.dagger.io/alpine"
|
||||
"universe.dagger.io/docker"
|
||||
)
|
||||
|
||||
// Build docker image (depends on build)
|
||||
image: {
|
||||
_base: alpine.#Build & {}
|
||||
|
||||
docker.#Build & {
|
||||
steps: [
|
||||
docker.#Copy & {
|
||||
input: _base.output
|
||||
contents: build.output
|
||||
dest: "/usr/bin"
|
||||
},
|
||||
docker.#Set & {
|
||||
config: cmd: ["</path/to/binary>"]
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user