Share /tmp between containers using volume mount and use alpine for deploy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user