From 15a7808491583545ab53f707e88af5fdaa2cfbe3 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Wed, 6 Dec 2023 16:19:01 +0100 Subject: [PATCH] CI: Forgejo Actions examples For more information see the documentation https://forgejo.org/docs/v1.21/user/actions/ It is still incomplete and you can take a look at the GitHub Actions for inspiration. Note however that there is no guarantee they are compatible and each new thing should be tested first. --- .forgejo/workflows/demo-docker.yml | 8 ++++++++ .forgejo/workflows/demo-lxc.yml | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .forgejo/workflows/demo-docker.yml create mode 100644 .forgejo/workflows/demo-lxc.yml diff --git a/.forgejo/workflows/demo-docker.yml b/.forgejo/workflows/demo-docker.yml new file mode 100644 index 0000000..b95a289 --- /dev/null +++ b/.forgejo/workflows/demo-docker.yml @@ -0,0 +1,8 @@ +on: [pull_request] +jobs: + demo: + runs-on: docker + steps: + - uses: actions/checkout@v4 + - run: | + uname -a diff --git a/.forgejo/workflows/demo-lxc.yml b/.forgejo/workflows/demo-lxc.yml new file mode 100644 index 0000000..2331b77 --- /dev/null +++ b/.forgejo/workflows/demo-lxc.yml @@ -0,0 +1,10 @@ +on: [pull_request] +jobs: + demo: + runs-on: k8s + steps: + - run: | + set -x + apt-get update -qq + apt-get -q install -qq docker.io + docker info