This commit is contained in:
@@ -6,9 +6,9 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
runs-on: self-hosted
|
||||
container:
|
||||
image: klakegg/hugo:ext-alpine
|
||||
image: alpine:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -16,12 +16,19 @@ jobs:
|
||||
with:
|
||||
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
|
||||
run: hugo --minify
|
||||
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
apk add --no-cache rsync openssh
|
||||
mkdir -p /root/.ssh
|
||||
echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
||||
chmod 600 /root/.ssh/id_ed25519
|
||||
|
||||
Reference in New Issue
Block a user