Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 49482c3e1d | |||
| 17e9c79cee | |||
| 1095382fac | |||
| 06a687dadc | |||
| 56f895d53d | |||
| 9dbc7c41ea | |||
| db5f6371b5 | |||
| c8860ea0c0 | |||
| db111a68fb | |||
| 1231224367 | |||
| 22bb1d235a | |||
| 9573da25df | |||
| 8ab7863163 | |||
| 59e1f6b189 | |||
| 69c7cfa899 | |||
| 0778f67928 | |||
| 9131865d86 | |||
| b6727c7c9d | |||
| b7d81bb1ae | |||
| 44c1b4deb3 | |||
| 2b28500707 | |||
| 1549a0b0c5 | |||
| eae85bc42f | |||
| b28e40da64 | |||
| 89c52eaade | |||
| a4c7572c89 | |||
| f6ae48c9ab | |||
| 5cfbcc41d5 | |||
| 04983e4b93 | |||
| b3b920d778 | |||
| 68722c3a32 | |||
| 7a70bfd878 | |||
| 31e1f45431 | |||
| 803159a4c6 | |||
| 9028ebf434 | |||
| f595ed517b | |||
| 3330728b5a | |||
| 8384d2f68f | |||
| 8dd6f94bde | |||
| 130fb229da | |||
| 8be2d2542a |
3 changed files with 71 additions and 0 deletions
20
.forgejo/dotnet-build/action.yml
Normal file
20
.forgejo/dotnet-build/action.yml
Normal file
|
|
@ -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 }}
|
||||||
23
.forgejo/workflows/demo.yaml
Normal file
23
.forgejo/workflows/demo.yaml
Normal file
|
|
@ -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
|
||||||
28
containers/forgejo/docker-compose.yml
Normal file
28
containers/forgejo/docker-compose.yml
Normal file
|
|
@ -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'
|
||||||
Loading…
Reference in a new issue