git/.forgejo/workflows/main.yaml

28 lines
594 B
YAML
Raw Normal View History

2024-03-22 15:10:04 +00:00
on: [push]
jobs:
job:
runs-on: docker
container:
image: debian:bookworm
steps:
2024-03-22 22:15:17 +00:00
- name: Clone CD
2024-03-22 15:10:04 +00:00
run: |
echo '${{vars.dns}}' > '/etc/resolv.conf'
2024-03-22 22:15:17 +00:00
apt-get update
apt-get install --yes 'git'
2024-03-22 22:29:34 +00:00
git clone "${GITHUB_SERVER_URL}/rwx.work/cd" '/cd'
2024-03-22 15:10:04 +00:00
2024-03-22 22:38:49 +00:00
- run: /cd/env
2024-03-22 15:10:04 +00:00
2024-03-22 23:06:37 +00:00
- run: echo "${PATH}"
- run: ls -al /usr/local/bin
2024-03-22 15:10:04 +00:00
- name: Install tools
run: |
2024-03-22 22:15:17 +00:00
apt-get install --yes \
2024-03-22 15:15:15 +00:00
'pandoc' \
2024-03-22 15:10:04 +00:00
2024-03-22 22:38:49 +00:00
- run: /cd/branch
2024-03-22 22:59:29 +00:00
- run: /cd/build
- run: /cd/workspace
2024-03-22 22:49:57 +00:00
- run: /cd/sync