-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
45 lines (39 loc) · 1.26 KB
/
Taskfile.yml
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
version: '3'
vars:
VERSION: v0.1.0
IMAGE_NAME: europe-docker.pkg.dev/kubemq/images/ibm-mq-connector
tasks:
default:
env:
# LOG_LEVEL: ERROR
# CONFIGURATION_FILE_PATH: ./config/config.yaml
cmds:
- uv run main.py
lint:
cmds:
- ruff format
- ruff check --fix
docker:
cmds:
- gcloud config set project kubemq
- docker buildx build --platform linux/amd64 --load -t {{.IMAGE_NAME}}:{{.VERSION}} . --no-cache --push
- docker pull {{.IMAGE_NAME}}:{{.VERSION}}
- docker tag {{.IMAGE_NAME}}:{{.VERSION}} {{.IMAGE_NAME}}:latest
- docker push {{.IMAGE_NAME}}:latest
- trivy image --exit-code 1 --severity CRITICAL,HIGH {{.IMAGE_NAME}}:{{.VERSION}}
docker-push:
cmds:
-
- docker push {{.IMAGE_NAME}}:{{.VERSION}}
trivy:
cmds:
- trivy image --exit-code 1 --severity HIGH,CRITICAL {{.IMAGE_NAME}}:{{.VERSION}}
# - trivy image --exit-code 1 --severity HIGH,CRITICAL python:3.13.0-alpine3.20
docker-run:
cmds:
- docker run -it -v ${PWD}/config.yaml:/app/config.yaml {{.IMAGE_NAME}}:{{.VERSION}}
deploy:
dir: ./deployment
cmds:
- kubectl config use-context gke_ji-portal-v2_us-central1_ai-agent-cluster
- kubectl apply -k . -n default