git/.forgejo/workflows/main.yaml
Marc Beninca b325dca13b
Some checks failed
/ job (push) Failing after 51s
env
2024-03-22 23:15:17 +01:00

51 lines
1.2 KiB
YAML

on: [push]
jobs:
job:
runs-on: docker
container:
image: debian:bookworm
steps:
- name: Clone CD
run: |
echo '${{vars.dns}}' > '/etc/resolv.conf'
apt-get update
apt-get install --yes 'git'
git clone "${GITHUB_SERVER_URL}/rwx.work/cd"
- run: 'cd/env'
- name: Install tools
run: |
apt-get install --yes \
'tree' \
'pandoc' \
'rsync' \
- name: Clone repository
run: git clone "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" '.'
- name: Browse workspace
run: tree -a "${GITHUB_WORKSPACE}"
- name: Build
run: './build.sh'
- name: Configure Delivery
run: |
mkdir --parents ~/.ssh
echo '${{secrets.cd}}' > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
sha256sum ~/.ssh/id_ed25519
- name: Test connection
run: |
ssh -o StrictHostKeyChecking=accept-new 'cd@de.tilde.link' \
-- hostname
- name: Synchronize output
run: |
rsync \
--archive \
--verbose \
'out/' \
"cd@de.tilde.link:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}/"