Use ARM Bookdown image in Forgejo CI
Some checks failed
Build and deploy the book / book (push) Failing after 49s

This commit is contained in:
Simon 2026-08-20 09:52:04 +01:00
parent 12825a90c6
commit 9d85f39cfd
2 changed files with 17 additions and 4 deletions

View file

@ -14,7 +14,7 @@ jobs:
book: book:
runs-on: docker runs-on: docker
container: container:
image: rocker/verse:4.4.3 image: eacompanion-bookdown:1
steps: steps:
- name: Check out the repository - name: Check out the repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -29,11 +29,8 @@ jobs:
env: env:
DEPLOY_KEY: ${{ secrets.EACOMPANION_DEPLOY_KEY }} DEPLOY_KEY: ${{ secrets.EACOMPANION_DEPLOY_KEY }}
run: | run: |
apt-get update
apt-get install -y --no-install-recommends openssh-client
install -d -m 0700 "$HOME/.ssh" install -d -m 0700 "$HOME/.ssh"
printf '%s\n' "$DEPLOY_KEY" > "$HOME/.ssh/id_ed25519" printf '%s\n' "$DEPLOY_KEY" > "$HOME/.ssh/id_ed25519"
chmod 0600 "$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" 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 }}" tar -C _book -czf - . | ssh -p 12 eacompanion@81.187.28.216 "deploy ${{ forgejo.sha }}"

View 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