20 Commits
0.0.8 ... main

Author SHA1 Message Date
9198095c28 gitea to git
All checks were successful
continuous-integration/drone/tag Build is passing
2025-10-21 23:55:37 +05:30
71177a50e6 fixes for IMAGE_TAG
All checks were successful
continuous-integration/drone/tag Build is passing
2025-10-21 19:31:47 +05:30
887e3835c2 Update .drone.yml 2025-10-21 13:58:09 +00:00
c4f51a59c8 do not trust AI to write good code
All checks were successful
continuous-integration/drone Build is passing
2025-10-21 13:53:12 +00:00
40f4fabfe2 do not trust AI to write good code
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 13:51:21 +00:00
23bce67595 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 13:50:13 +00:00
49d1e241c3 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 13:46:55 +00:00
438bf18325 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 13:40:16 +00:00
b69af60f87 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 13:37:20 +00:00
b69fca13cb Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 12:47:44 +00:00
95e58cef54 temporary removed check and build stage to force push image to registry
Some checks reported errors
continuous-integration/drone Build was killed
2025-10-21 12:39:28 +00:00
edf9c08848 Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2025-10-21 12:38:09 +00:00
a7ba9c2ea8 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 12:28:09 +00:00
cd9ed14475 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 12:25:20 +00:00
f80ffa058e Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 12:23:43 +00:00
4cc35f9422 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 12:21:11 +00:00
58da548058 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2025-10-21 12:12:14 +00:00
1d1b71d780 Update .drone.yml 2025-10-21 12:11:20 +00:00
f69de26c1b added Netdata in monitoring services
Some checks failed
continuous-integration/drone/tag Build is failing
2025-10-12 15:31:25 +05:30
0431998723 added step in .drone.yml to push image to REGISTRY_HOST 2025-10-12 15:01:46 +05:30
2 changed files with 93 additions and 46 deletions

View File

@@ -3,7 +3,6 @@ kind: pipeline
type: docker type: docker
name: default name: default
# ARM64 platform (for your Pi runner)
platform: platform:
os: linux os: linux
arch: arm64 arch: arm64
@@ -11,71 +10,112 @@ platform:
workspace: workspace:
path: /drone/src path: /drone/src
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
steps: steps:
# Step 1a: Git fetch tags locally
- name: fetch-tags - name: fetch-tags
image: docker:24 image: docker:24
environment: volumes:
DOCKER_HOST: unix:///var/run/docker.sock # local Docker, if needed - name: dockersock
path: /var/run/docker.sock
commands: commands:
- apk add --no-cache git - apk add --no-cache git
- git fetch --tags - git fetch --tags
- | - |
LATEST_TAG=$(git describe --tags --abbrev=0) # Get latest Git tag and trim newline
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null | tr -d '\n')
echo "Latest Git tag fetched: $LATEST_TAG" echo "Latest Git tag fetched: $LATEST_TAG"
# Save to file to share with next step
echo $LATEST_TAG > /drone/src/LATEST_TAG.txt
# Step 1b: Check if image exists on remote LAN Docker # Save to file for downstream steps
- name: check-remote-image echo "$LATEST_TAG" > /drone/src/LATEST_TAG.txt
image: docker:24
environment:
DOCKER_HOST: tcp://192.168.1.111:2376 # remote Docker
commands:
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt)
- echo "Checking if apps/homepage:$IMAGE_TAG exists on remote Docker..."
- |
if docker image inspect apps/homepage:$IMAGE_TAG > /dev/null 2>&1; then
echo "✅ Docker image apps/homepage:$IMAGE_TAG already exists — skipping build";
exit 78; # stop pipeline gracefully
else
echo "⚙️ Docker image apps/homepage:$IMAGE_TAG not found — proceeding to build...";
fi
# Step 2: Build Docker image (dynamic tag) # Read back for verification
- name: build-image IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
image: docker:24 echo "Image tag read from file: $IMAGE_TAG"
environment:
DOCKER_HOST: tcp://192.168.1.111:2376 # Validate
commands:
- |
IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt)
if [ -z "$IMAGE_TAG" ]; then if [ -z "$IMAGE_TAG" ]; then
echo "❌ No tag found in LATEST_TAG.txt — cannot build." echo "❌ No git tags found! Cannot continue."
exit 1 exit 1
fi fi
echo "🔨 Building Docker image apps/homepage:$IMAGE_TAG ..."
docker build --network=host -t apps/homepage:$IMAGE_TAG -t apps/homepage:latest .
# Step 3: Stop old container (if exists) - name: check-remote-image
image: docker:24
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
- echo "Checking if apps/homepage:$IMAGE_TAG exists on remote Docker..."
- echo "Existing Docker tags for apps/homepage:"
- docker images --format "{{.Repository}}:{{.Tag}}" | grep "^apps/homepage" || echo "(none)"
- |
if docker image inspect apps/homepage:$IMAGE_TAG > /dev/null 2>&1; then
echo "✅ Docker image apps/homepage:$IMAGE_TAG already exists — skipping build"
exit 78
else
echo "⚙️ Docker image apps/homepage:$IMAGE_TAG not found — proceeding to build..."
fi
- name: build-image
image: docker:24
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
- echo "🔨 Building Docker image apps/homepage:$IMAGE_TAG ..."
- docker build --network=host -t apps/homepage:$IMAGE_TAG -t apps/homepage:latest /drone/src
- name: push-image
image: docker:24
environment:
REGISTRY_HOST:
from_secret: REGISTRY_HOST
REGISTRY_USER:
from_secret: REGISTRY_USER
REGISTRY_PASS:
from_secret: REGISTRY_PASS
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
- echo "🔑 Logging into registry $REGISTRY_HOST ..."
- echo "$REGISTRY_PASS" | docker login $REGISTRY_HOST -u "$REGISTRY_USER" --password-stdin
- echo "🏷️ Tagging images with registry prefix..."
- docker tag apps/homepage:$IMAGE_TAG $REGISTRY_HOST/apps/homepage:$IMAGE_TAG
- docker tag apps/homepage:$IMAGE_TAG $REGISTRY_HOST/apps/homepage:latest
- echo "📤 Pushing apps/homepage:$IMAGE_TAG ..."
- docker push $REGISTRY_HOST/apps/homepage:$IMAGE_TAG
- echo "📤 Pushing apps/homepage:latest ..."
- docker push $REGISTRY_HOST/apps/homepage:latest
- name: stop-old - name: stop-old
image: docker:24 image: docker:24
environment: volumes:
DOCKER_HOST: tcp://192.168.1.111:2376 - name: dockersock
path: /var/run/docker.sock
commands: commands:
- | - echo "🛑 Stopping old container..."
echo "🛑 Stopping old container..." - docker rm -f homepage || true
docker rm -f homepage || true
# Step 4: Run container
- name: run-container - name: run-container
image: docker:24 image: docker:24
environment: volumes:
DOCKER_HOST: tcp://192.168.1.111:2376 - name: dockersock
path: /var/run/docker.sock
commands: commands:
- IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt | tr -d '\n')
- echo "🚀 Starting container apps/homepage:$IMAGE_TAG ..."
- | - |
IMAGE_TAG=$(cat /drone/src/LATEST_TAG.txt)
echo "🚀 Starting container apps/homepage:$IMAGE_TAG ..."
docker run -d \ docker run -d \
--name homepage \ --name homepage \
-p 3001:3000 \ -p 3001:3000 \
@@ -87,3 +127,4 @@ steps:
trigger: trigger:
event: event:
- tag - tag
- custom

View File

@@ -45,8 +45,8 @@ const items = [
title: 'The Forge Conclave', title: 'The Forge Conclave',
serviceList: [ serviceList: [
{ {
name: "Gitea", name: "Git",
url: "https://gitea.aetoskia.com", url: "https://git.aetoskia.com",
desc: "Forge and safeguard code like a sacred relic.", desc: "Forge and safeguard code like a sacred relic.",
external: true external: true
}, },
@@ -70,6 +70,12 @@ const items = [
icon: <MonitorHeartIcon/>, icon: <MonitorHeartIcon/>,
title: 'The Vigilant Watch', title: 'The Vigilant Watch',
serviceList: [ serviceList: [
{
name: "Netdata",
url: "https://netdata.aetoskia.com",
desc: "Watch over the mechanized legions and digital armories with the unblinking eye of the Omnissiah.",
external: true
},
{ {
name: "Portainer", name: "Portainer",
url: "https://portainer.aetoskia.com", url: "https://portainer.aetoskia.com",