Compare commits

...

46 Commits

Author SHA1 Message Date
88b881cd44 vars/gitea
Some checks failed
/ job (push) Failing after 3m22s
2025-08-19 19:58:03 +02:00
60e1484c78 vars/github 2025-08-19 19:52:58 +02:00
56822df8a5 >
Some checks are pending
/ job (push) Has started running
2025-06-08 20:58:57 +02:00
1b2a761cc4 quoteagain 2025-06-08 20:58:56 +02:00
91c2209fef reoverquote 2025-06-08 20:58:56 +02:00
4f04f669cc overquote 2025-06-08 20:58:56 +02:00
511eb4cf70 quote 2025-06-08 20:58:56 +02:00
79ada71bc6 quotes 2025-06-08 20:58:55 +02:00
1c405a7851 oneliners 2025-06-08 20:58:55 +02:00
163cf2df83 out 2025-06-08 20:58:45 +02:00
a48a88adc1 runs-on 2025-06-08 11:58:02 +02:00
eebdf48ff3 render 2025-06-08 11:55:36 +02:00
53fd3be916 list,dict 2024-10-20 20:34:21 +02:00
020175c6fe action 2024-10-20 19:51:09 +02:00
100687cad5 act 2024-10-14 22:44:03 +02:00
983017f455 source: output 2024-10-14 21:48:31 +02:00
72a0f52c38 workflow/action 2024-10-14 15:24:32 +02:00
2fde2aeead check 2024-10-14 14:37:25 +02:00
a433d401be build 2024-10-14 14:37:01 +02:00
a6cbf0bb05 github/""
Some checks failed
/ job (push) Has been cancelled
2024-07-29 21:55:25 +02:00
b6f70cf3c1 github/"" 2024-07-29 21:53:59 +02:00
640cc03395 gitlab/""
Some checks failed
/ job (push) Has been cancelled
2024-07-29 20:07:47 +02:00
b8ddf85152 gitlab/echo|sh 2024-07-29 20:05:19 +02:00
639ff63b9e gitlab/−sh 2024-07-29 20:02:18 +02:00
cfd946e27d spcd
Some checks failed
/ job (push) Has been cancelled
2024-07-29 17:33:13 +02:00
a28beb11b6 fixes
Some checks failed
/ job (push) Has been cancelled
2024-07-29 15:59:00 +02:00
9033afb30e fixes 2024-07-29 15:38:47 +02:00
5c6add201c tilde.link 2024-07-29 14:38:54 +02:00
f98fbc3538 +ssh/key 2024-07-29 12:14:16 +02:00
6e4ce00199 +ssh/hosts 2024-07-29 12:03:50 +02:00
887f406f8b −ssh 2024-07-29 10:53:36 +02:00
c17c9d7c7a clone-branch
Some checks failed
/ job (push) Has been cancelled
2024-07-28 20:29:26 +02:00
5af6fceb72 docker
Some checks failed
/ job (push) Has been cancelled
2024-07-28 17:00:24 +02:00
5bd2765cd4 docker/gitlab
Some checks failed
/ job (push) Has been cancelled
2024-07-22 14:44:36 +02:00
8158a544c7 docker/github 2024-07-22 14:41:29 +02:00
b66c629d0d main/github 2024-07-22 14:41:00 +02:00
f1263962a7 '' 2024-07-22 14:38:42 +02:00
5949898e1e "" 2024-07-22 14:37:28 +02:00
02b73ee76b / 2024-07-22 14:35:23 +02:00
080d76a3dd main 2024-07-22 14:34:44 +02:00
30488f6ba4 test 2024-07-22 14:30:05 +02:00
c6ca8e1e0c groups
Some checks failed
/ job (push) Has been cancelled
2024-07-22 09:47:48 +02:00
5ce1291cf0 beninca.link
Some checks failed
/ job (push) Failing after 8m17s
2024-07-20 20:23:56 +02:00
5fc5fea469 workflows
Some checks failed
/ job (push) Has been cancelled
2024-07-13 00:21:02 +02:00
7f76ee5a36 workflows
Some checks failed
/ job (push) Failing after 8m1s
2024-06-27 13:42:36 +02:00
b729cbfda7 spcd 2024-06-27 13:39:17 +02:00
9 changed files with 87 additions and 56 deletions

View File

@@ -1,20 +0,0 @@
on: [push]
jobs:
job:
container:
image: debian:bookworm
steps:
- name: pidd
env:
PIDD_GIT_MAIN: ${{vars.PIDD_GIT_MAIN}}
PIDD_GIT_ROOT: ${{vars.PIDD_GIT_ROOT}}
run: >
${{vars.PIDD}}
"${{secrets.PIDD_SSH_KEY}}"
"${{vars.PIDD_SSH_HOSTS}}"
- run: pidd-list-environment
- run: pidd-clone-branch
- run: pidd-build-project
- run: pidd-browse-workspace
- run: pidd-synchronize

View File

@@ -0,0 +1,34 @@
on: [push]
jobs:
job:
runs-on: ubuntu-latest
container:
image: ${{vars.DOCKER}}debian:bookworm
steps:
- name: spcd
env:
SPCD: ${{vars.SPCD}}
SPCD_SSH_HOSTS: ${{vars.SPCD_SSH_HOSTS}}
SPCD_SSH_KEY: ${{secrets.SPCD_SSH_KEY}}
run: ${{vars.SPCD}}
- run: spcd-check-project
- run: spcd-build-project
- run: spcd-browse-workspace
- uses: ./act/action
with:
arg_1: '"one"'
arg_2: >
[
"one",
"two",
]
arg_3: >
{
"one": 1,
"two": 2,
"three": 3,
}
- uses: ./act/synchronize
with:
source: output

1
.gitea
View File

@@ -1 +0,0 @@
.forgejo

View File

@@ -0,0 +1,15 @@
on: [push]
jobs:
job:
container:
image: ${{vars.DOCKER}}debian:bookworm
steps:
- name: spcd
env:
SPCD: ${{vars.SPCD}}
SPCD_GIT_RWX: ${{vars.SPCD_GIT_RWX}}
SPCD_GIT_SPCD: ${{vars.SPCD_GIT_SPCD}}
run: ${{vars.SPCD}}
- run: spcd-build-project
- run: spcd-browse-workspace

View File

@@ -1,21 +0,0 @@
on: [push]
jobs:
job:
runs-on: ubuntu-latest
container:
image: debian:bookworm
steps:
- name: pidd
env:
PIDD_GIT_MAIN: ${{vars.PIDD_GIT_MAIN}}
PIDD_GIT_ROOT: ${{vars.PIDD_GIT_ROOT}}
run: >
echo '${{vars.PIDD}}' | tr -d '\r' | sh -s
"${{secrets.PIDD_SSH_KEY}}"
"${{vars.PIDD_SSH_HOSTS}}"
- run: pidd-list-environment
- run: pidd-clone-branch
- run: pidd-build-project
- run: pidd-browse-workspace
- run: pidd-synchronize

16
.github/workflows/main.yaml vendored Normal file
View File

@@ -0,0 +1,16 @@
on: [push]
jobs:
job:
runs-on: ubuntu-latest
container:
image: ${{vars.DOCKER}}debian:bookworm
steps:
- name: spcd
env:
SPCD: ${{vars.SPCD}}
SPCD_GIT_RWX: ${{vars.SPCD_GIT_RWX}}
SPCD_GIT_SPCD: ${{vars.SPCD_GIT_SPCD}}
run: echo '${{vars.SPCD}}' | tr -d "\r" | sh -s
- run: spcd-build-project
- run: spcd-browse-workspace

View File

@@ -1,12 +1,7 @@
image: debian:bookworm
image: ${DOCKER}debian:bookworm
job:
script:
- >
sh ${PIDD}
${PIDD_SSH_KEY}
${PIDD_SSH_HOSTS}
- echo "${SPCD}" | sh -s
- pidd-list-environment
- pidd-clone-branch
- pidd-build-project
- pidd-browse-workspace
- spcd-build-project
- spcd-browse-workspace

View File

@@ -1,7 +1,7 @@
# Project
Sample project, demonstrating the use of \
[Python Integration, Delivery & Deployment](https://forge.rwx.work/rwx.work/pidd).
[Shell to Python Continuous Deployment](https://forge.rwx.work/rwx.work/spcd).
## Continuous Integration
@@ -14,7 +14,9 @@ Sample project, demonstrating the use of \
### variables
* [forgejo @ forge.rwx.work](https://forge.rwx.work/org/rwx.work/settings/actions/variables)
* [gitea @ git.projectsegfau.lt](https://git.projectsegfau.lt/org/rwx.work/settings/actions/variables)
* [github @ github.com](https://github.com/organizations/rwx-work/settings/variables/actions)
* [gitlab @ gitlab.com](https://gitlab.com/groups/rwx.work/-/settings/ci_cd)
* [forgejo @ forge.rwx.work / beninca.link](https://forge.rwx.work/org/beninca.link/settings/actions/variables)
* [forgejo @ forge.rwx.work / rwx.work](https://forge.rwx.work/org/rwx.work/settings/actions/variables)
* [forgejo @ forge.rwx.work / tilde.link](https://forge.rwx.work/org/tilde.link/settings/actions/variables)
* [gitea @ git.projectsegfau.lt / rwx.work](https://git.projectsegfau.lt/org/rwx.work/settings/actions/variables)
* [github @ github.com / rwx-work](https://github.com/organizations/rwx-work/settings/variables/actions)
* [gitlab @ gitlab.com / rwx.work](https://gitlab.com/groups/rwx.work/-/settings/ci_cd)

11
render.py Executable file
View File

@@ -0,0 +1,11 @@
#! /usr/bin/env python3
"""Dummy build."""
from pathlib import Path
from rwx.fs import make_directory, write
if __name__ == "__main__":
out = Path(__file__).parent / "out" / "web"
make_directory(out)
write(out / "index.html", "prj.rwx.work")