8 Commits
0.0.2 ... main

Author SHA1 Message Date
41e254f732 specify platform to pick runner
Some checks failed
continuous-integration/drone/push Build is failing
2025-09-28 03:49:03 +05:30
7ebdfede12 added custom trigger
Some checks reported errors
continuous-integration/drone Build was killed
2025-09-28 02:43:47 +05:30
bb7a2fd08e fixes in .drone.yml 2025-09-28 02:37:51 +05:30
4058796b50 minor changes
Some checks reported errors
continuous-integration/drone Build encountered an error
2025-09-28 02:34:04 +05:30
54d72b4d66 intelligent check for new tags before building 2025-09-28 02:33:48 +05:30
d0d3a3deea updated version to 0.0.3 2025-09-28 02:09:43 +05:30
7be8dc7bc2 renamed dcr to registry 2025-09-28 02:09:17 +05:30
fdf23dd510 added drone deployment 2025-09-28 02:06:24 +05:30
4 changed files with 75 additions and 3 deletions

72
.drone.yml Normal file
View File

@@ -0,0 +1,72 @@
---
kind: pipeline
type: docker
name: default
# Platform specification for ARM64 runners
platform:
os: linux
arch: arm64
steps:
# Step 1: Check if Docker image for current version already exists
- name: check-version
image: docker:24
environment:
DOCKER_HOST: unix:///var/run/docker.sock
commands:
- apk add --no-cache git
- git fetch --tags
- |
# Get the latest Git tag
LATEST_TAG=$(git describe --tags --abbrev=0)
echo "Latest Git tag: $LATEST_TAG"
# Check if Docker image exists
if docker image inspect apps/homepage:$LATEST_TAG > /dev/null 2>&1; then
echo "Docker image apps/homepage:$LATEST_TAG already exists — skipping build"
exit 0
else
echo "Docker image apps/homepage:$LATEST_TAG not found — building..."
fi
# Step 2: Build Docker image with dynamic Git tag
- name: build-image
image: docker:24
environment:
DOCKER_HOST: unix:///var/run/docker.sock
commands:
- IMAGE_TAG=${DRONE_TAG:-latest}
- echo "Building Docker image apps/homepage:$IMAGE_TAG ..."
- docker build -t apps/homepage:$IMAGE_TAG .
# Step 3: Stop old container if exists
- name: stop-old
image: docker:24
environment:
DOCKER_HOST: unix:///var/run/docker.sock
commands:
- IMAGE_TAG=${DRONE_TAG:-latest}
- echo "Stopping old container..."
- docker rm -f homepage || true
# Step 4: Run container with dynamic tag
- name: run-container
image: docker:24
environment:
DOCKER_HOST: unix:///var/run/docker.sock
commands:
- IMAGE_TAG=${DRONE_TAG:-latest}
- echo "Starting container apps/homepage:$IMAGE_TAG ..."
- docker run -d \
--name homepage \
-p 3001:3000 \
-e NODE_ENV=production \
apps/homepage:$IMAGE_TAG
# Trigger pipeline on Git tags
trigger:
event:
- push
- tag
- custom

View File

@@ -25,7 +25,7 @@ const services = {
], ],
codebase: [ codebase: [
{ name: "Gitea", url: "http://gitea.aetoskia.com", desc: "Forge and safeguard code like a sacred relic.", external: true }, { name: "Gitea", url: "http://gitea.aetoskia.com", desc: "Forge and safeguard code like a sacred relic.", external: true },
{ name: "DCR", url: "http://dcr.aetoskia.com", desc: "Monitor core constructs of the digital empire.", external: true }, { name: "Registry", url: "http://registry.aetoskia.com", desc: "Monitor core constructs of the digital empire.", external: true },
{ name: "Drone", url: "http://drone.aetoskia.com", desc: "Automaton architect, building pipelines of perfection.", external: true }, { name: "Drone", url: "http://drone.aetoskia.com", desc: "Automaton architect, building pipelines of perfection.", external: true },
], ],
monitoring: [ monitoring: [

View File

@@ -5,7 +5,7 @@ services:
dockerfile: Dockerfile dockerfile: Dockerfile
# network: host # network: host
container_name: homepage container_name: homepage
image: apps/homepage:0.0.2 image: apps/homepage:0.0.5
ports: ports:
- "3001:3000" # map host port 3000 to container - "3001:3000" # map host port 3000 to container
environment: environment:

View File

@@ -1,5 +1,5 @@
{ {
"name": "material-ui-react-router-ts", "name": "homepage",
"private": true, "private": true,
"type": "module", "type": "module",
"scripts": { "scripts": {