Archived all completed OpenSpec changes, created .gitignore, implemented Gitea CI/CD, updated frontend with professional styling and clickable IPs, and added application documentation.

This commit is contained in:
2026-03-27 13:09:48 +01:00
parent cc59a91fea
commit 1873ae0e1f
25 changed files with 262 additions and 0 deletions

43
.github/workflows/ci-cd.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
name: CI/CD Pipeline
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: [self-hosted, run]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build backend image
run: docker build -t backend ./backend
- name: Build frontend image
run: docker build -t frontend ./frontend
- name: Tag images
run: |
docker tag backend:latest git.reiimer.se/my-org/backend:latest
docker tag backend:latest git.reiimer.se/my-org/backend:$(echo $GITHUB_SHA | cut -c1-7)
docker tag frontend:latest git.reiimer.se/my-org/frontend:latest
docker tag frontend:latest git.reiimer.se/my-org/frontend:$(echo $GITHUB_SHA | cut -c1-7)
- name: Log in to Gitea Registry
uses: docker/login-action@v3
with:
registry: git.reiimer.se
username: ${{ secrets.GITEA_USERNAME }}
password: ${{ secrets.GITEA_PASSWORD }}
- name: Push backend image
run: |
docker push git.reiimer.se/filip/backend:latest
docker push git.reiimer.se/filip/backend:$(echo $GITHUB_SHA | cut -c1-7)
- name: Push frontend image
run: |
docker push git.reiimer.se/filip/frontend:latest
docker push git.reiimer.se/filip/frontend:$(echo $GITHUB_SHA | cut -c1-7)