microscopic-river-74022
09/24/2024, 11:10 PMmicroscopic-river-74022
09/24/2024, 11:10 PMBuild
, Deploy
, Test
, and Run
. Each action can be configured based on its kind and type.
For instance, you can have multiple actions defined in the same garden.yml
file. This is useful when you want to define multiple instances in the same directory and yaml file, such as when you want to use more than one Dockerfile for the same code.
Here's an example where multiple Build
actions are declared in the same file:
yaml
kind: Build
name: backend
description: Backend app container
type: container
include:
- backend/**/*
---
kind: Build
name: frontend
description: Frontend app container
type: container
include:
- frontend/**/*
In this example, two Build
actions are defined for backend
and frontend
respectively. You can add more actions as needed for your project.
You can also have actions spread across different files and even across multiple git repos. Each action can be put in its own garden.yml
file and located next to any source files.
For more information, you can refer to the Garden documentation on actions ().
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------microscopic-river-74022
09/24/2024, 11:10 PMplain-pizza-51556
09/24/2024, 11:14 PM