This commit is contained in:
parent
0b9b23d8ef
commit
ee173e6d40
|
|
@ -1,11 +0,0 @@
|
||||||
stages:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
deploy-job:
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- echo "Deploying setup-dotz.sh script to dotz.mgk.one"
|
|
||||||
- cp /srv/sites/dotz.mgk.one/git/setup-dotz.sh /srv/sites/dotz.mgk.one/public_html/setup-dotz.sh
|
|
||||||
- chmod +x /srv/sites/dotz.mgk.one/public_html/setup-dotz.sh
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
18
.forgejo/workflows/deploy.yaml
Normal file
18
.forgejo/workflows/deploy.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: barad-dur
|
||||||
|
steps:
|
||||||
|
- name: Deploy to dotz.mgk.one
|
||||||
|
run: echo "Deploying to dotz.mgk.one!"
|
||||||
|
|
||||||
|
- name: Update git repo on webserver
|
||||||
|
run: |
|
||||||
|
echo "Updating repo on webserver."
|
||||||
|
git -C /srv/sites/dotz.mgk.one/git pull
|
||||||
|
|
||||||
|
- name: Copying over new shell script to web server
|
||||||
|
run: |
|
||||||
|
echo "Copying over new shell script to web server."
|
||||||
|
rsync -av --delete /srv/sites/dotz.mgk.one/git/setup-dotz.sh /srv/sites/anubis.mgk.one/public_html/
|
||||||
|
|
||||||
Loading…
Reference in a new issue