Merge branch 'main' of ssh://gitlab.jafner.net:2229/Jafner/homelab

This commit is contained in:
Joey Hafner 2022-02-11 09:59:49 -08:00
commit 82baea8d48
2 changed files with 35 additions and 1 deletions

26
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,26 @@
stages:
- deploy
before_script:
# update and install git
- apt-get update -qq
- apt-get install -qq git
# configure SSH keys
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
server-deploy:
stage: deploy
when: manual
rules:
- changes:
- server/
script:
- ssh joey@joey-server "cd /home/joey && git archive --remote=ssh://git@gitlab.jafner.net:2229/Jafner/homelab.git main server/ | tar xvf -"
- ssh joey@joey-server "cp -r server/config/* ./docker_config/"
- ssh joey@joey-server "rm -rf server/"

View File

@ -2,3 +2,11 @@
General-purpose server hosting a variety of Docker-based application stacks.
This server exists behind the jafner.net DDNS record.
## Services
This server runs a bunch of stuff behind the `jafner.net` domain.
For a living portal listing all user-facing services, go to https://home.jafner.net
This repository is automatically pushed to the host when a change is made to a file in this subdirectory.