Compare commits
19 commits
0d46b26714
...
d1a1816793
Author | SHA1 | Date | |
---|---|---|---|
d1a1816793 | |||
73ddb411d7 | |||
05dbdbbd08 | |||
e8eef34306 | |||
d84b4606ad | |||
58e5aa6358 | |||
1b44baeba4 | |||
370fba0b21 | |||
ba891ee0aa | |||
8e1f0167af | |||
ab09acce85 | |||
a821a68e71 | |||
773995a3d5 | |||
576bc20475 | |||
bdfadec91a | |||
34b3ecd0b9 | |||
0ed9a7691f | |||
c1c8238061 | |||
b325dca13b |
1 changed files with 12 additions and 45 deletions
|
@ -1,57 +1,24 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
job:
|
||||
|
||||
runs-on: docker
|
||||
container:
|
||||
image: debian:bookworm
|
||||
|
||||
steps:
|
||||
- name: Sort environment
|
||||
run: env | sort
|
||||
|
||||
- name: List event
|
||||
run: cat "${GITHUB_EVENT_PATH}"
|
||||
- name: cd-bootstrap
|
||||
env:
|
||||
CD: '${{secrets.cd}}'
|
||||
run: eval '${{vars.cd}}'
|
||||
|
||||
- name: Set DNS
|
||||
run: |
|
||||
echo '${{vars.dns}}' > '/etc/resolv.conf'
|
||||
cat '/etc/resolv.conf'
|
||||
- run: cd-list-environment
|
||||
|
||||
- name: Update catalog
|
||||
run: apt-get update
|
||||
- run: cd-clone-branch
|
||||
- run: cd-install-packages 'pandoc'
|
||||
|
||||
- name: Install tools
|
||||
run: |
|
||||
apt-get install --assume-yes \
|
||||
'git' \
|
||||
'tree' \
|
||||
'pandoc' \
|
||||
'rsync' \
|
||||
- run: cd-build-project
|
||||
- run: cd-browse-workspace
|
||||
|
||||
- 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}/"
|
||||
- run: cd-synchronize-output 'out'
|
||||
|
|
Loading…
Reference in a new issue