|
@@ -1,27 +1,26 @@
|
|
|
----
|
|
|
|
|
# Kestra Docker Git Build Template
|
|
# Kestra Docker Git Build Template
|
|
|
# ---
|
|
# ---
|
|
|
#
|
|
#
|
|
|
# Build a Docker image from a Git repository.
|
|
# Build a Docker image from a Git repository.
|
|
|
#
|
|
#
|
|
|
-
|
|
|
|
|
-id: docker-git-build # <- Replace with your task id...
|
|
|
|
|
-namespace: your-namespace # <- Replace with your namespace...
|
|
|
|
|
-
|
|
|
|
|
|
|
+id: docker_build_git
|
|
|
|
|
+namespace: your_namespace # <- Replace with your namespace...
|
|
|
tasks:
|
|
tasks:
|
|
|
-
|
|
|
|
|
- - id: git # <- Replace with your task id...
|
|
|
|
|
|
|
+ - id: docker_job
|
|
|
type: io.kestra.plugin.core.flow.WorkingDirectory
|
|
type: io.kestra.plugin.core.flow.WorkingDirectory
|
|
|
-
|
|
|
|
|
tasks:
|
|
tasks:
|
|
|
- - id: clone # <- Replace with your task id...
|
|
|
|
|
|
|
+ - id: git_clone
|
|
|
type: io.kestra.plugin.git.Clone
|
|
type: io.kestra.plugin.git.Clone
|
|
|
- url: https://your-git-repo-url # <- Replace with your Git repository URL...
|
|
|
|
|
- branch: your-branch # <- Replace with your Git branch...
|
|
|
|
|
-
|
|
|
|
|
- - id: build # <- Replace with your task id...
|
|
|
|
|
|
|
+ url: your-git-repository-url # <-- Replace with your Git repository URL...
|
|
|
|
|
+ directory: docker
|
|
|
|
|
+ branch: main # <-- (Optional) Replace with your Git branch...
|
|
|
|
|
+ # --> (Optional) If Git repository is private, add your Git token...
|
|
|
|
|
+ # username: xcad
|
|
|
|
|
+ # password: "{{ secret('GITOKEN') }}"
|
|
|
|
|
+ # <--
|
|
|
|
|
+ - id: docker_build
|
|
|
type: io.kestra.plugin.docker.Build
|
|
type: io.kestra.plugin.docker.Build
|
|
|
- dockerfile: "src/Dockerfile" # <- Replace with your Dockerfile path...
|
|
|
|
|
|
|
+ dockerfile: "docker/src/Dockerfile" # <- Replace with your Dockerfile path...
|
|
|
tags:
|
|
tags:
|
|
|
- your-username/your-repository:your-tag # <- Replace with your Docker image tag...
|
|
- your-username/your-repository:your-tag # <- Replace with your Docker image tag...
|
|
|
push: true
|
|
push: true
|