Use ARM Bookdown image in Forgejo CI
Some checks failed
Build and deploy the book / book (push) Failing after 49s
Some checks failed
Build and deploy the book / book (push) Failing after 49s
This commit is contained in:
parent
12825a90c6
commit
9d85f39cfd
2 changed files with 17 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
book:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: rocker/verse:4.4.3
|
||||
image: eacompanion-bookdown:1
|
||||
steps:
|
||||
- name: Check out the repository
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -29,11 +29,8 @@ jobs:
|
|||
env:
|
||||
DEPLOY_KEY: ${{ secrets.EACOMPANION_DEPLOY_KEY }}
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends openssh-client
|
||||
install -d -m 0700 "$HOME/.ssh"
|
||||
printf '%s\n' "$DEPLOY_KEY" > "$HOME/.ssh/id_ed25519"
|
||||
chmod 0600 "$HOME/.ssh/id_ed25519"
|
||||
printf '%s\n' '[81.187.28.216]:12 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDKyA1+5/gU2P27AuDbk2SRNFeuumRP9pEicZc7zu51n' > "$HOME/.ssh/known_hosts"
|
||||
tar -C _book -czf - . | ssh -p 12 eacompanion@81.187.28.216 "deploy ${{ forgejo.sha }}"
|
||||
|
||||
|
|
|
|||
16
deploy/Dockerfile.bookdown
Normal file
16
deploy/Dockerfile.bookdown
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
FROM debian:trixie-slim
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
git \
|
||||
nodejs \
|
||||
openssh-client \
|
||||
pandoc \
|
||||
r-base \
|
||||
r-cran-bookdown \
|
||||
r-cran-rmarkdown \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV HOME=/root
|
||||
WORKDIR /workspace
|
||||
Loading…
Reference in a new issue