This commit is contained in:
@@ -6,9 +6,9 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
container:
|
container:
|
||||||
image: klakegg/hugo:ext-alpine
|
image: alpine:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -16,12 +16,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
|
- name: Install Hugo Extended
|
||||||
|
run: |
|
||||||
|
apk add --no-cache wget tar rsync openssh
|
||||||
|
wget https://github.com/gohugoio/hugo/releases/download/v0.146.0/hugo_extended_0.146.0_Linux-64bit.tar.gz
|
||||||
|
tar -xzf hugo_extended_0.146.0_Linux-64bit.tar.gz
|
||||||
|
mv hugo /usr/local/bin/hugo
|
||||||
|
hugo version
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache rsync openssh
|
|
||||||
mkdir -p /root/.ssh
|
mkdir -p /root/.ssh
|
||||||
echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
||||||
chmod 600 /root/.ssh/id_ed25519
|
chmod 600 /root/.ssh/id_ed25519
|
||||||
|
|||||||
Reference in New Issue
Block a user