Test deploying actions.
This commit is contained in:
parent
b14c0cf1b1
commit
66d3307980
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: build-and-deploy
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build
|
- name: Build
|
||||||
@ -10,7 +10,6 @@ steps:
|
|||||||
- . /app/venv/bin/activate
|
- . /app/venv/bin/activate
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pelican content -s publishconf.py
|
- pelican content -s publishconf.py
|
||||||
- cat output/index.html
|
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
image: drillster/drone-rsync
|
image: drillster/drone-rsync
|
||||||
@ -29,6 +28,8 @@ steps:
|
|||||||
script:
|
script:
|
||||||
- "sudo chown root:www-data -R /var/www/conference"
|
- "sudo chown root:www-data -R /var/www/conference"
|
||||||
|
|
||||||
triggers:
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
24
.gitea/workflows/build-deploy.yml
Normal file
24
.gitea/workflows/build-deploy.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
name: Build and Deploy
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
Build:
|
||||||
|
runs-on: site-builder
|
||||||
|
steps:
|
||||||
|
- run: . /app/venv/bin/activate
|
||||||
|
- run: pip install -r requirements.txt
|
||||||
|
- run: pelican content -s publishconf.py
|
||||||
|
|
||||||
|
Deploy:
|
||||||
|
runs-on: debian-bookworm
|
||||||
|
steps:
|
||||||
|
- uses: easingthemes/ssh-deploy@main
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
SOURCE: output/
|
||||||
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||||
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||||
|
REMOTE_PORT: ${{ secrets.REMOTE_PORT }}
|
||||||
|
TARGET: /var/www/conference
|
||||||
|
SCRIPT_AFTER: |
|
||||||
|
sudo chown -R root:www-data /var/www/conference
|
Loading…
Reference in New Issue
Block a user