bright-policeman-43626
06/23/2023, 5:35 AMkind: Deploy
type: container
build: api-build
name: api
description: Golang API deployment
spec:
sync:
paths:
- target: /app
mode: "one-way-replica"
microscopic-river-74022
06/23/2023, 5:35 AMyaml
kind: Deploy
type: helm
name: api
description: Golang API deployment
spec:
sync:
paths:
- containerPath: /app
sourcePath: ${actions.build.api-build.sourcePath}
mode: "one-way-replica"
In the Helm Deploy action, you need to use containerPath
instead of target
, and you also need to specify the sourcePath
. You can use the ${actions.build.<name>.sourcePath}
template string to reference the source path of the corresponding build action.
Sources:
- Helm Deploy Action - Code Synchronization ()
- ConfigMap Helm - spec.sync.paths ()
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------