vanten-s.com/.forgejo/workflows/test.yaml

17 lines
632 B
YAML
Raw Normal View History

2024-07-21 22:16:26 +02:00
on: [push]
jobs:
2024-07-21 22:26:45 +02:00
build:
2024-07-21 22:16:26 +02:00
runs-on: docker
2024-07-21 22:41:54 +02:00
container:
image: alpine:latest
2024-07-21 22:16:26 +02:00
steps:
2024-07-21 22:41:54 +02:00
- run: apk add hugo
2024-07-21 22:43:36 +02:00
- run: apk add git
2024-07-21 22:52:22 +02:00
- run: apk add openssh
2024-07-21 22:54:25 +02:00
- run: git clone https://forgejo.vanten-s.com/vanten-s/vanten-s.com src
- run: hugo -s src
2024-07-21 23:25:31 +02:00
- run: echo "${{ secrets.KEY }}"
2024-07-21 23:28:26 +02:00
- run: mkdir .ssh
- run: echo "[vanten-s.com]:24 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICt3Q5D/mAfHXa3nXvpSsoeQ+zFnZItwWl4T6g/Dw6xs" > .ssh/known_hosts
2024-07-21 23:19:16 +02:00
- run: eval $(ssh-agent -s) && echo "${{ secrets.KEY }}" | ssh-add - && scp -P 24 -r src/public svante@vanten-s.com:nginx-docker/vanten-s.com/