Initialize project from default template
This commit is contained in:
commit
2c1060c56e
32
.claude/CLAUDE.md
Normal file
32
.claude/CLAUDE.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# test-ci2
|
||||||
|
|
||||||
|
Project deployed to pp32j3c8.threesix.ai via threesix.ai platform.
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Clone
|
||||||
|
git clone https://git.threesix.ai/jordan/test-ci2.git
|
||||||
|
cd test-ci2
|
||||||
|
|
||||||
|
# Build
|
||||||
|
docker build -t test-ci2 .
|
||||||
|
|
||||||
|
# Run
|
||||||
|
docker run -p 8080:8080 test-ci2
|
||||||
|
```
|
||||||
|
|
||||||
|
## Deployment
|
||||||
|
|
||||||
|
Pushes to `main` trigger automatic deployment via Woodpecker CI:
|
||||||
|
1. Build Docker image
|
||||||
|
2. Push to registry (registry.threesix.ai)
|
||||||
|
3. Update Kubernetes deployment
|
||||||
|
|
||||||
|
Live at: https://pp32j3c8.threesix.ai
|
||||||
|
|
||||||
|
## Constraints
|
||||||
|
|
||||||
|
- Keep the Dockerfile optimized for build time
|
||||||
|
- Use multi-stage builds when possible
|
||||||
|
- All config via environment variables
|
||||||
22
.woodpecker.yml
Normal file
22
.woodpecker.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
steps:
|
||||||
|
docker:
|
||||||
|
image: woodpeckerci/plugin-kaniko
|
||||||
|
settings:
|
||||||
|
registry: registry.threesix.ai
|
||||||
|
repo: "test-ci2"
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- ${CI_COMMIT_SHA:0:8}
|
||||||
|
cache: true
|
||||||
|
skip-tls-verify: true
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
image: bitnami/kubectl:latest
|
||||||
|
commands:
|
||||||
|
- kubectl set image deployment/test-ci2 test-ci2=registry.threesix.ai/test-ci2:${CI_COMMIT_SHA:0:8} -n projects
|
||||||
|
when:
|
||||||
|
- event: push
|
||||||
|
branch: main
|
||||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Default Dockerfile - replace with your application
|
||||||
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
# Copy static files or your app
|
||||||
|
COPY . /usr/share/nginx/html/
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
21
README.md
Normal file
21
README.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# test-ci2
|
||||||
|
|
||||||
|
Deployed at: https://pp32j3c8.threesix.ai
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
1. Clone the repository
|
||||||
|
2. Build with Docker: `docker build -t test-ci2 .`
|
||||||
|
3. Run locally: `docker run -p 8080:8080 test-ci2`
|
||||||
|
|
||||||
|
## CI/CD
|
||||||
|
|
||||||
|
This project uses Woodpecker CI for continuous deployment. Pushing to `main` will:
|
||||||
|
- Build a Docker image
|
||||||
|
- Push to the container registry
|
||||||
|
- Deploy to Kubernetes
|
||||||
|
|
||||||
|
## Resources
|
||||||
|
|
||||||
|
- Live site: https://pp32j3c8.threesix.ai
|
||||||
|
- Git repository: https://git.threesix.ai/jordan/test-ci2.git
|
||||||
Loading…
Reference in New Issue
Block a user