2024-04-21 12:02:19 +02:00
|
|
|
---
|
2024-04-19 15:23:14 +02:00
|
|
|
# Kestra Docker Git Build Template
|
|
|
|
# ---
|
2024-04-21 11:59:31 +02:00
|
|
|
#
|
2024-04-19 15:23:14 +02:00
|
|
|
# Build a Docker image from a Git repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
id: docker-git-build
|
2024-04-21 12:06:15 +02:00
|
|
|
namespace: # your-namespace
|
2024-04-19 15:23:14 +02:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- id: git
|
|
|
|
type: io.kestra.core.tasks.flows.WorkingDirectory
|
|
|
|
tasks:
|
|
|
|
- id: clone
|
|
|
|
type: io.kestra.plugin.git.Clone
|
|
|
|
url: https://your-git-repo-url
|
|
|
|
branch: your-branch
|
|
|
|
|
|
|
|
- id: build
|
|
|
|
type: io.kestra.plugin.docker.Build
|
|
|
|
dockerfile: "src/Dockerfile"
|
2024-04-21 11:59:31 +02:00
|
|
|
tags:
|
2024-04-19 15:23:14 +02:00
|
|
|
- your-username/your-repository:your-tag
|
|
|
|
push: true
|
|
|
|
credentials:
|
|
|
|
registry: https://index.docker.io/v1/
|
|
|
|
username: "{{ secret('YOUR_USERNAME') }}"
|
|
|
|
password: "{{ secret('YOUR_PASSWORD') }}"
|