Move resume and change in personal data
This commit is contained in:
parent
813e5afdd2
commit
b940636f0f
3 changed files with 117 additions and 85 deletions
196
.woodpecker.yml
196
.woodpecker.yml
|
|
@ -1,87 +1,119 @@
|
||||||
---
|
steps:
|
||||||
version: "3.8"
|
build:
|
||||||
|
image: node:22
|
||||||
|
commands:
|
||||||
|
- npm ci
|
||||||
|
- npm run build
|
||||||
|
- echo "VERSION=$(cat version.txt)" > .env
|
||||||
|
|
||||||
services:
|
clear-from-host:
|
||||||
woodpecker-gitea:
|
image: appleboy/drone-ssh
|
||||||
container_name: woodpecker-gitea
|
settings:
|
||||||
image: gitea/gitea:${GITEA_VERSION:-1.14.5}
|
host:
|
||||||
restart: unless-stopped
|
from_secret: ssh_host
|
||||||
cpus: 0.5
|
username:
|
||||||
mem_limit: 512m
|
from_secret: ssh_username
|
||||||
networks:
|
key:
|
||||||
- woodpecker
|
from_secret: ssh_key
|
||||||
environment:
|
port: 2332
|
||||||
- APP_NAME="Gitea"
|
script:
|
||||||
- USER_UID=116
|
- rm -rf /home/mnisyif/docker-containers/mnisyif/frontend/*
|
||||||
- USER_GID=126
|
- echo "Target directory cleared"
|
||||||
- USER=git
|
|
||||||
- RUN_MODE=prod
|
|
||||||
- DOMAIN=git.nisyif.com
|
|
||||||
- SSH_DOMAIN=git.nisyif.com
|
|
||||||
- HTTP_PORT=3000
|
|
||||||
- ROOT_URL=https://git.nisyif.com
|
|
||||||
- SSH_PORT=2121
|
|
||||||
- SSH_LISTEN_PORT=22
|
|
||||||
- DB_TYPE=sqlite3
|
|
||||||
- GIT_SSL_NO_VERIFY=true
|
|
||||||
ports:
|
|
||||||
- "2121:22"
|
|
||||||
- "3000:3000"
|
|
||||||
volumes:
|
|
||||||
- /mnt/fam_storage/Home/Git/data/gitea:/data
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
logging: *default-logging
|
|
||||||
|
|
||||||
woodpecker-server:
|
copy-to-host:
|
||||||
image: woodpeckerci/woodpecker-server:latest
|
image: appleboy/drone-scp
|
||||||
container_name: woodpecker-server
|
settings:
|
||||||
restart: unless-stopped
|
host:
|
||||||
cpus: 0.5
|
from_secret: ssh_host
|
||||||
mem_limit: 512m
|
username:
|
||||||
networks:
|
from_secret: ssh_username
|
||||||
- woodpecker
|
key:
|
||||||
environment:
|
from_secret: ssh_key
|
||||||
- WOODPECKER_OPEN=true
|
port: 2332
|
||||||
- WOODPECKER_HOST=https://ci.nisyif.com
|
target: /home/mnisyif/docker-containers/mnisyif/frontend
|
||||||
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
|
source:
|
||||||
- WOODPECKER_GITEA=true
|
- dist/
|
||||||
- WOODPECKER_GITEA_URL=https://git.nisyif.com
|
- nginx.conf
|
||||||
- WOODPECKER_GITEA_CLIENT=${WOODPECKER_GITEA_CLIENT}
|
- version.txt
|
||||||
- WOODPECKER_GITEA_SECRET=${WOODPECKER_GITEA_SECRET}
|
|
||||||
- WOODPECKER_GITEA_SKIP_VERIFY=true
|
|
||||||
volumes:
|
|
||||||
- /mnt/fam_storage/Home/Git/data/server:/var/lib/woodpecker
|
|
||||||
ports:
|
|
||||||
- 8050:8000
|
|
||||||
logging: *default-logging
|
|
||||||
|
|
||||||
woodpecker-agent:
|
webserver-deploy:
|
||||||
image: woodpeckerci/woodpecker-agent:latest
|
image: appleboy/drone-ssh
|
||||||
container_name: woodpecker-agent
|
settings:
|
||||||
command: agent
|
host:
|
||||||
restart: unless-stopped
|
from_secret: ssh_host
|
||||||
cpus: 0.5
|
username:
|
||||||
mem_limit: 512m
|
from_secret: ssh_username
|
||||||
depends_on:
|
key:
|
||||||
- woodpecker-server
|
from_secret: ssh_key
|
||||||
networks:
|
port: 2332
|
||||||
- woodpecker
|
script:
|
||||||
environment:
|
- cd /home/mnisyif/docker-containers/mnisyif/frontend
|
||||||
- WOODPECKER_SERVER=woodpecker-server:9000
|
- VERSION=$(cat version.txt)
|
||||||
- WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}
|
- echo "Nginx configuration:"
|
||||||
volumes:
|
- cat nginx.conf
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- echo "Contents of dist directory:"
|
||||||
logging: *default-logging
|
- ls -la dist
|
||||||
|
# Stop and remove the existing container if it exists
|
||||||
|
- docker stop frontend || true
|
||||||
|
- docker rm frontend || true
|
||||||
|
# Run the new container with the current version, mounting the files
|
||||||
|
- >
|
||||||
|
docker run -d --name frontend -p 5173:80
|
||||||
|
-v /home/mnisyif/docker-containers/mnisyif/frontend/dist:/usr/share/nginx/html:ro
|
||||||
|
-v /home/mnisyif/docker-containers/mnisyif/frontend/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
|
nginx:alpine
|
||||||
|
# Tag the running container with the version
|
||||||
|
- docker tag nginx:alpine frontend:$VERSION
|
||||||
|
- echo "Deployment completed"
|
||||||
|
|
||||||
networks:
|
confirm-deployment:
|
||||||
woodpecker:
|
image: appleboy/drone-ssh
|
||||||
name: woodpecker-net
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_host
|
||||||
|
username:
|
||||||
|
from_secret: ssh_username
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
port: 2332
|
||||||
|
script:
|
||||||
|
- echo "Verifying deployment..."
|
||||||
|
# Verify the container is running
|
||||||
|
- docker ps | grep frontend || { echo "Container failed to start"; exit 1; }
|
||||||
|
# Display container logs and test nginx configuration
|
||||||
|
- docker logs frontend
|
||||||
|
- docker exec frontend nginx -t
|
||||||
|
- docker exec frontend ps aux | grep nginx
|
||||||
|
|
||||||
x-logging:
|
# Check contents of /usr/share/nginx/html in the container
|
||||||
&default-logging
|
- docker exec frontend ls -la /usr/share/nginx/html
|
||||||
driver: "json-file"
|
# Perform a simple HTTP request to check if the server is responding
|
||||||
options:
|
- curl -I http://localhost:5173 || { echo "HTTP request failed"; exit 1; }
|
||||||
max-size: "1m"
|
- echo "Deployment confirmed successfully"
|
||||||
max-file: "1"
|
|
||||||
tag: "{{.Name}}"
|
cleanup:
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
from_secret: ssh_host
|
||||||
|
username:
|
||||||
|
from_secret: ssh_username
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
port: 2332
|
||||||
|
script:
|
||||||
|
- echo "Performing cleanup..."
|
||||||
|
# Clean up unused containers, images, and volumes
|
||||||
|
- docker system prune -f --volumes
|
||||||
|
# Remove older versions of the Docker image
|
||||||
|
- >
|
||||||
|
for img in $(docker images frontend --format "{{.Tag}}" | grep -v $(cat /home/mnisyif/docker-containers/mnisyif/frontend/version.txt)); do
|
||||||
|
docker rmi frontend:$img || true;
|
||||||
|
done
|
||||||
|
- echo "Cleanup completed"
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
"about_me": "I'm passionate about computers, technology, and sports. I love creating solutions that ease people's daily routines. My journey in the world of tech began at a young age, and ever since, I've been captivated by the endless possibilities it offers. Whether it's building innovative solutions, developing software, or diving deep into the latest tech trends, I find immense joy in it all.",
|
"about_me": "I'm passionate about computers, technology, and sports. I love creating solutions that ease people's daily routines. My journey in the world of tech began at a young age, and ever since, I've been captivated by the endless possibilities it offers. Whether it's building innovative solutions, developing software, or diving deep into the latest tech trends, I find immense joy in it all.",
|
||||||
"interests": ["Tech Enthusiast", "Problem Solver", "Sports Lover"],
|
"interests": ["Tech Enthusiast", "Problem Solver", "Sports Lover"],
|
||||||
"socials": [{ "github": "https://git.nisyif.com/mnisyif" }, { "linkedin": "https://www.linkedin.com/in/mnisyif/" }, { "twitter": "https://x.com/mnisyif" }],
|
"socials": [{ "github": "https://git.nisyif.com/mnisyif" }, { "linkedin": "https://www.linkedin.com/in/mnisyif/" }, { "twitter": "https://x.com/mnisyif" }],
|
||||||
"resumelink": "/assets/resume.pdf",
|
"resumelink": "/assets/Murtadha.pdf",
|
||||||
"pp": "/assets/pp/abtme.png",
|
"pp": "/assets/pp/abtme.png",
|
||||||
"heropp": "/assets/pp/pp.jpg"
|
"heropp": "/assets/pp/pp.jpg"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue