This commit is contained in:
30
.gitea/workflows/on-push.yml
Normal file
30
.gitea/workflows/on-push.yml
Normal 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
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Ignore environment variable files
|
||||
.env
|
||||
35
docker-compose.yml
Normal file
35
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user