Use local node-rsync:alpine image and remove runtime apk install
This commit is contained in:
@@ -18,17 +18,17 @@ jobs:
|
||||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -p 2222 -H gitea.learngaming.top >> ~/.ssh/known_hosts
|
||||
ssh-keyscan -p 222 -H gitea.learngaming.top >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Clone FixIt theme
|
||||
run: |
|
||||
set -e
|
||||
git clone --depth=1 ssh://git@gitea.learngaming.top:2222/blogs/FixIt.git /tmp/hugo-site/themes/FixIt
|
||||
git clone --depth=1 ssh://git@gitea.learngaming.top:222/blogs/FixIt.git /tmp/hugo-site/themes/FixIt
|
||||
|
||||
- name: Clone repository to content directory
|
||||
run: |
|
||||
set -e
|
||||
REPO_URL="ssh://git@gitea.learngaming.top:2222/blogs/outcomes.git"
|
||||
REPO_URL="ssh://git@gitea.learngaming.top:222/blogs/outcomes.git"
|
||||
if [ -n "${CI_REPOSITORY_URL:-}" ]; then
|
||||
REPO_URL="${CI_REPOSITORY_URL}"
|
||||
fi
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
runs-on: act_runner1
|
||||
needs: build
|
||||
container:
|
||||
image: node:alpine
|
||||
image: learngaming.top:5000/node-rsync:alpine
|
||||
steps:
|
||||
- name: Download public directory
|
||||
uses: actions/download-artifact@v3
|
||||
@@ -62,7 +62,6 @@ jobs:
|
||||
- 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