diff --git a/.forgejo/dotnet-build/action.yml b/.forgejo/dotnet-build/action.yml new file mode 100644 index 0000000..5c9d803 --- /dev/null +++ b/.forgejo/dotnet-build/action.yml @@ -0,0 +1,20 @@ +inputs: + idk: + # input-one: + # default: 'one' + # description: 'description one' + # input-two-required: + # description: 'description two' + # required: true +outputs: + key: + description: 'output value' + value: "${{ steps.one.outputs.key }}" + +runs: + using: "composite" + steps: + - name: From the dotnet-build action + run: | + ls -la + echo tee hee ${{ inputs.idk }} diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml new file mode 100644 index 0000000..1d4c28e --- /dev/null +++ b/.forgejo/workflows/demo.yaml @@ -0,0 +1,23 @@ +on: [push] +jobs: + # test: + # runs-on: docker + # steps: + # - run: echo All good! + checkout: + runs-on: self-hosted + env: + test: value + steps: + # - name: checkout + # run: | + # git checkout + - name: Output and set some-result.test + id: some-result + run: | + echo ${{ env.test }} + echo 'test=good' >> $FORGEJO_OUTPUT + - name: Output updated env.test? + run: | + echo ${{ steps.some-result.outputs.test }} + test ${{ steps.some-result.outputs.test }} = good diff --git a/containers/forgejo/docker-compose.yml b/containers/forgejo/docker-compose.yml new file mode 100644 index 0000000..6e07d0b --- /dev/null +++ b/containers/forgejo/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3.8' + +services: + docker-in-docker: + image: docker:dind + container_name: 'docker_dind' + privileged: 'true' + command: ['dockerd', '-H', 'tcp://0.0.0.0:2375', '--tls=false'] + restart: 'unless-stopped' + + runner: + image: 'data.forgejo.org/forgejo/runner:13' + # commented out because links aren't supported and I'm not sure why the docs + # even has it + # links: + # - docker-in-docker + depends_on: + docker-in-docker: + condition: service_started + container_name: 'runner' + environment: + DOCKER_HOST: tcp://docker-in-docker:2375 + # User without root privileges, but with access to `./data`. + user: 1001:1001 + volumes: + - ./data:/data + restart: 'unless-stopped' + command: 'forgejo-runner daemon --config runner-config.yml'