Share /tmp between containers using volume mount and use alpine for deploy
Build and deploy Hugo site / build (push) Successful in 6s
Build and deploy Hugo site / deploy (push) Failing after 49s

This commit is contained in:
YaoLei
2026-07-06 14:04:01 +08:00
parent c2f47948bf
commit accdf7c3d3
+5
View File
@@ -6,6 +6,7 @@ jobs:
runs-on: act_runner1
container:
image: 192.168.254.5:5000/hugo:v0.163.3
options: -v /tmp:/tmp
steps:
- name: Create Hugo site
run: |
@@ -42,10 +43,14 @@ jobs:
deploy:
runs-on: act_runner1
needs: build
container:
image: alpine:latest
options: -v /tmp:/tmp
steps:
- name: Deploy via rsync
run: |
set -e
apk add --no-cache rsync openssh-client
# Setup SSH key for rsync
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa