-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
69 lines (58 loc) · 1.55 KB
/
Copy pathTaskfile.yml
File metadata and controls
69 lines (58 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "3"
dotenv: [".env"]
env:
IMAGE_TAG:
sh: "echo ${IMAGE_TAG:-latest}"
REGISTRY_DOMAIN:
sh: "echo ${REGISTRY_DOMAIN:-registry.hub.docker.com}"
REPO_NAME:
sh: "echo ${REPO_NAME:-chrisleekr}"
IMAGE_NAME:
sh: "echo ${IMAGE_NAME:-multicloud-k8s-iac}"
BUILD_PLATFORM:
sh: "echo ${BUILD_PLATFORM:-linux/amd64}" # Align with the GitLab CI
BUILD_ARCH:
sh: "echo ${BUILD_ARCH:-amd64}" # Align with the GitLab CI
ENVIRONMENT:
sh: "echo ${ENVIRONMENT:-dev}"
REGION:
sh: "echo ${REGION:-ap-southeast-2}"
includes:
aws:ec2-stack: ./workspaces/aws/ec2-stack/Taskfile.yml
aws:bedrockagent: ./workspaces/aws/bedrockagent/Taskfile.yml
gcp:gke-stack: ./workspaces/gcp/gke-stack/Taskfile.yml
local:minikube-stack: ./workspaces/local/minikube-stack/Taskfile.yml
tasks:
setup:repo:
desc: Setup the repository
cmds:
- pre-commit install
precommit:
desc: Run pre-commit hooks
cmds:
- pre-commit run --all-files --verbose
validate:helm:
desc: Validate Helm
cmds:
- ./scripts/validate-helm.sh
validate:terraform:
desc: Validate Terraform
cmds:
- ./scripts/validate-terraform.sh
docker:build:
desc: Build Docker image
cmds:
- ./scripts/docker-build.sh
docker:run:
desc: Run Docker container
cmds:
- ./scripts/docker-run.sh
docker:shell:
desc: Access to docker shell
cmds:
- docker exec -it "${IMAGE_NAME}" /bin/bash
docker:exec:
desc: Execute docker command
cmds:
- task: docker:run
- task: docker:shell