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

17 lines
506 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
- run: mkdir .ssh
- run: echo "${{ secrets.KEY }}" > .ssh/id_ed25519
2024-07-21 23:05:46 +02:00
- run: chmod go-r .ssh/id_ed25519
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:08:14 +02:00
- run: scp -P 24 -i .ssh/id_ed25519 -r src/public svante@vanten-s.com:nginx-docker/vanten-s.com/