Init commit
Some checks failed
On Push Deploy / deploy (push) Failing after 0s

This commit is contained in:
Johnny322
2026-02-08 11:24:59 +01:00
commit ac135e98bd
3 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
name: On Push Deploy
on:
push:
jobs:
deploy:
runs-on: docker
container:
volumes:
- /root/docker:/docker
steps:
- name: Something else else
run: |
ls
ls -la
- name: Something else
run: |
cd
ls -la
- name: Something else
run: |
cd /root/docker
ls -la
- name: Pull and run command on server
run: |
ls
cd /root/docker/gitea-setup
git pull
echo "TODO: add command"

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
# Ignore environment variable files
.env

35
docker-compose.yml Normal file
View File

@@ -0,0 +1,35 @@
version: "3.8"
services:
gitea:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=postgres
- DB_HOST=db:5432
- DB_NAME=${POSTGRES_DB}
- DB_USER=${POSTGRES_USER}
- DB_PASSWD=${DB_PASSWD}
- APP_NAME=Gitea
- RUN_MODE=prod
restart: always
ports:
#- "3000:3000" # Web UI
- "222:22" # SSH for git clone via SSH
depends_on:
- db
volumes:
- ./data:/root/data/gitea/data
db:
image: postgres:15
container_name: gitea-db
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./db:/root/data/gitea/postgresql/data