adding pipe and touches
This commit is contained in:
58
.gitea/workflows/main.yaml
Normal file
58
.gitea/workflows/main.yaml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
name: Homepage Build and Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY_HOST: git.ivanch.me
|
||||||
|
REGISTRY_USERNAME: ivanch
|
||||||
|
IMAGE_NAME: ${{ env.REGISTRY_HOST }}/ivanch/mainpage
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_ivanch_me:
|
||||||
|
name: Build Homepage Image
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Log in to Container Registry
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.REGISTRY_PASSWORD }}" \
|
||||||
|
| docker login "${{ env.REGISTRY_HOST }}" \
|
||||||
|
-u "${{ env.REGISTRY_USERNAME }}" \
|
||||||
|
--password-stdin
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Build and Push Multi-Arch Image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
tags: |
|
||||||
|
${{ env.IMAGE_NAME }}:latest
|
||||||
|
|
||||||
|
deploy_ivanch_me:
|
||||||
|
name: Deploy Homepage
|
||||||
|
runs-on: ubuntu-amd64
|
||||||
|
needs: build_ivanch_me
|
||||||
|
steps:
|
||||||
|
- name: Recreate Container
|
||||||
|
uses: appleboy/ssh-action@v0.1.7
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script: |
|
||||||
|
cd ${{ secrets.DIR }}
|
||||||
|
docker compose pull
|
||||||
|
docker compose up -d --force-recreate
|
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM nginx:alpine-slim
|
||||||
|
|
||||||
|
COPY . /usr/share/nginx/html
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
11
index.html
11
index.html
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="ivanch's personal portfolio showcasing projects, skills, and homelab setup.">
|
<meta name="description" content="ivanch's personal portfolio showcasing projects and homelab setup.">
|
||||||
<meta name="author" content="ivanch">
|
<meta name="author" content="ivanch">
|
||||||
|
|
||||||
<link rel="icon" href="/assets/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/assets/favicon.ico" type="image/x-icon">
|
||||||
@@ -19,7 +19,6 @@
|
|||||||
<link rel="stylesheet" href="css/matrix.css">
|
<link rel="stylesheet" href="css/matrix.css">
|
||||||
<link rel="stylesheet" href="css/button.css">
|
<link rel="stylesheet" href="css/button.css">
|
||||||
|
|
||||||
|
|
||||||
<!-- Remix Icon CDN for social icons -->
|
<!-- Remix Icon CDN for social icons -->
|
||||||
<link href="https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
@@ -29,7 +28,7 @@
|
|||||||
|
|
||||||
<!-- Main hero section -->
|
<!-- Main hero section -->
|
||||||
<main class="main-container">
|
<main class="main-container">
|
||||||
<div class="hero-card glass">
|
<div class="glass hero-card">
|
||||||
<div class="profile-container">
|
<div class="profile-container">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<img src="/assets/lain.png" alt="Avatar" />
|
<img src="/assets/lain.png" alt="Avatar" />
|
||||||
@@ -59,7 +58,11 @@
|
|||||||
<div class="hero-main-column">
|
<div class="hero-main-column">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h2 class="name">ivanch</h2>
|
<h2 class="name">ivanch</h2>
|
||||||
<p class="description">Developer and Self Hoster</p>
|
<p class="description">
|
||||||
|
Developer and Self Hoster
|
||||||
|
<br/>
|
||||||
|
<em>Organic code enthusiast</em>
|
||||||
|
</p>
|
||||||
<div class="social-links">
|
<div class="social-links">
|
||||||
<a href="https://www.linkedin.com/in/joseivanch/" class="btn social-link" target="_blank">
|
<a href="https://www.linkedin.com/in/joseivanch/" class="btn social-link" target="_blank">
|
||||||
<i class="ri-linkedin-fill"></i> <span>LinkedIn</span>
|
<i class="ri-linkedin-fill"></i> <span>LinkedIn</span>
|
||||||
|
Reference in New Issue
Block a user