Replace actions with self-hosted Jenkins
This commit is contained in:
parent
335c407a84
commit
dd8f4531e5
1 changed files with 0 additions and 29 deletions
29
.github/workflows/build-deploy-prod.yml
vendored
29
.github/workflows/build-deploy-prod.yml
vendored
|
@ -1,29 +0,0 @@
|
||||||
name: Build & Deployment
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Build Site
|
|
||||||
run: >-
|
|
||||||
docker run --rm
|
|
||||||
--workdir /app
|
|
||||||
-v ${{ github.workspace }}:/app
|
|
||||||
--entrypoint bash ruby:3.3 -c
|
|
||||||
"gem install bundler && bundle install && JEKYLL_ENV=production bundle exec jekyll build --config _config.yml && chmod -R 777 ./dist"
|
|
||||||
- name: Deploy Site
|
|
||||||
uses: milanmk/actions-file-deployer@master
|
|
||||||
with:
|
|
||||||
remote-protocol: "sftp"
|
|
||||||
remote-host: ${{ secrets.HOST }}
|
|
||||||
remote-port: ${{ secrets.PORT }}
|
|
||||||
remote-user: ${{ secrets.USERNAME }}
|
|
||||||
ssh-private-key: ${{ secrets.KEY }}
|
|
||||||
sync: full
|
|
||||||
local-path: ./dist/
|
|
||||||
remote-path: /html/erick.is
|
|
Loading…
Reference in a new issue