I left Github a while ago and have been relying on simple pre-push scripts in my workflow, but would like to be able to test PRs from others without putting my machine at risk. Besides codeberg and radicle (neither of which have reliable CI), I also have a build machine, where I could run CI jobs, however it is important that the CI jobs can also run locally so that external people do not require access to the build machine.

Is there a CI that can do those things (run locally and remotely)?

Anti Commercial-AI license

      • mholiv@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        11 days ago

        I can’t speak for general use. But use it to:

        1. Build Rust artifacts
        2. Rebuild static sites, upload them to a bucket, then clear the CDN cache.

        It works perfectly for me and I have not run into issues. But it might be bad for other people. I just know it works well for me.

  • PokerChips@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    11 days ago

    Great timing. I’m interested in this as well. I am currently attempting an ansible setup that runs podman containers in a couple lxc incus containers (developnent setup to mimic production) with forgejo and woodpecker on the other lxc container but it has been a battle.

    Currently unable to figure out why the ‘general.community’ modules won’t get recognized by ansible.

    • brian@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      11 days ago

      gitea has had some organizational problems so a lot of people have been using forgejo instead, which is just a community fork of gitea plus some more features

    • onlinepersona@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 days ago

      Is that easy to run for contributors? Can you just gitea-run-ci and it’ll run the CI locally in your checked out repository?

    • onlinepersona@programming.devOP
      link
      fedilink
      arrow-up
      1
      ·
      11 days ago

      Are you able to run woodpecker locally from the repository? As in can woodpecker run in the checked out repository run the CI jobs?

      • dave@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        11 days ago

        It also has a CLI tool that I know can re-run your pipeline locally for debugging, so just running it normally should also be possible. Haven’t used either so far though.

    • onlinepersona@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 days ago

      After perusing the docs, this looks more like it. Thank you. I’ll just have to explore how it can be combined with projects that use nix and those that don’t. My biggest issue with CIs has always been caching, but as the saying goes “there are 2 hard problems in computer science…”

      Anti Commercial-AI license

  • drspod@lemmy.ml
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    11 days ago

    would like to be able to test PRs from others without putting my machine at risk

    I know what you mean, but do you not read the diff? Are you working on codebases that are so obfuscated that you can’t spot a malicious command?

      • anton@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        10 days ago

        Run your CI in a sandbox.
        For example gitlab allows you to run in a docker image.
        Unless the attacker knows a docker CVE or is willing to waste a specter style 0-day on you, the most they can do is waste your cpu cycles.

        • timbuck2themoon@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          10 days ago

          Yep. Hell, be very paranoid and run it in a container on a runner VM on your box if you like.

          And you can use podman or sysbox there.