testfix/.woodpecker.yml

49 lines
1.2 KiB
YAML

steps:
build-backend:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: "testfix-backend"
dockerfile: backend/Dockerfile
context: backend
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
cache: true
skip-tls-verify: true
when:
- event: push
branch: main
build-frontend:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: "testfix-frontend"
dockerfile: frontend/Dockerfile
context: frontend
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
cache: true
skip-tls-verify: true
when:
- event: push
branch: main
deploy-backend:
image: bitnami/kubectl:latest
commands:
- kubectl set image deployment/testfix-backend backend=registry.threesix.ai/testfix-backend:${CI_COMMIT_SHA:0:8} -n projects
when:
- event: push
branch: main
deploy-frontend:
image: bitnami/kubectl:latest
commands:
- kubectl set image deployment/testfix-frontend frontend=registry.threesix.ai/testfix-frontend:${CI_COMMIT_SHA:0:8} -n projects
when:
- event: push
branch: main