Add rsync to documentation CI container
Some checks failed
/ build-doc (push) Successful in 14s
/ deploy-doc (push) Failing after 11s

This commit is contained in:
Thomas Kolb 2024-08-27 20:01:54 +02:00
parent 45e3eea773
commit 2bb6bf9878
2 changed files with 6 additions and 3 deletions

View file

@ -3,7 +3,7 @@ jobs:
build-doc: build-doc:
runs-on: docker runs-on: docker
container: container:
image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.4 image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.5
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: pwd && ls -hla && cd doc && make - run: pwd && ls -hla && cd doc && make
@ -11,11 +11,11 @@ jobs:
with: with:
name: documentation name: documentation
path: doc/out/ path: doc/out/
deploy: deploy-doc:
needs: build-doc needs: build-doc
runs-on: docker runs-on: docker
container: container:
image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.4 image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.5
steps: steps:
- run: mkdir ~/.ssh && echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519 && chmod 0600 ~/.ssh/id_ed25519 && echo "${{ secrets.SSH_KNOWN_HOST }}" > ~/.ssh/known_hosts - run: mkdir ~/.ssh && echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519 && chmod 0600 ~/.ssh/id_ed25519 && echo "${{ secrets.SSH_KNOWN_HOST }}" > ~/.ssh/known_hosts
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3

View file

@ -8,6 +8,9 @@ RUN gem install asciidoctor asciidoctor-diagram
# tools for diagram generation # tools for diagram generation
RUN apt install -y --no-install-recommends mscgen && apt clean RUN apt install -y --no-install-recommends mscgen && apt clean
# tools for automatic deployment
RUN apt install -y --no-install-recommends rsync && apt clean
# run as unprivileged user in the container # run as unprivileged user in the container
RUN useradd -m ciuser RUN useradd -m ciuser
USER ciuser USER ciuser