Last active
June 7, 2023 12:13
-
-
Save anna-geller/ec7451b8a2a01f261c5a8482d724f1cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: ci-cd | |
namespace: prod | |
variables: | |
host: "https://demo.kestra.io/" # self-hosted server: "http://your_host_name:8080/" | |
auth: "serviceAccountUser:password" | |
tasks: | |
- id: deploy | |
type: io.kestra.core.tasks.flows.Worker | |
tasks: | |
- id: cloneRepository | |
type: io.kestra.plugin.git.Clone | |
url: https://github.com/anna-geller/kestra-ci-cd | |
branch: main | |
- id: validateFlows | |
type: io.kestra.core.tasks.scripts.Bash | |
commands: | |
- /app/kestra flow validate flows/ --server={{vars.host}} --user={{vars.auth}} | |
- id: deployFlows | |
type: io.kestra.core.tasks.scripts.Bash | |
commands: | |
- /app/kestra flow namespace update prod flows/prod/ --no-delete --server={{vars.host}} --user={{vars.auth}} | |
- /app/kestra flow namespace update prod.marketing flows/prod.marketing/ --no-delete --server={{vars.host}} --user={{vars.auth}} | |
triggers: | |
- id: github | |
type: io.kestra.core.models.triggers.types.Webhook | |
key: "ThisIsYourWebhookKey1234" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment