Add actions to the portfolio
This commit is contained in:
parent
f902cd0713
commit
f982b478cf
3 changed files with 77 additions and 653 deletions
25
.forgejo/workflows/website_publish.yml
Normal file
25
.forgejo/workflows/website_publish.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Docker Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-22.04
|
||||
env:
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0 # all history for all branches and tags
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
eval $(ssh-agent -s)
|
||||
echo "${{ secrets.DEPLOY_KEY }}" | ssh-add -
|
||||
apt update && apt install -y rsync
|
||||
rsync -atv --progress -e 'ssh -o StrictHostKeyChecking=no -p ${{ secrets.DEPLOY_PORT }}' ./website/ ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }}
|
Loading…
Add table
Add a link
Reference in a new issue