add some names to the demo workflow

This commit is contained in:
Merith-TK 2024-12-28 00:41:22 +00:00
parent 28568735d3
commit 8f9e81272e

View file

@ -7,6 +7,8 @@ services:
image: code.forgejo.org/oci/alpine:3.19 image: code.forgejo.org/oci/alpine:3.19
links: links:
- forgejo - forgejo
depends_on:
- runner-daemon
command: >- command: >-
sh -ec ' sh -ec '
apk add --quiet git curl jq ; apk add --quiet git curl jq ;
@ -14,8 +16,8 @@ services:
cd /srv/demo ; cd /srv/demo ;
git init --initial-branch=main ; git init --initial-branch=main ;
mkdir -p .forgejo/workflows ; mkdir -p .forgejo/workflows ;
echo "{ on: [push], jobs: { test: { runs-on: docker, steps: [ {uses: actions/checkout@v4}, { run: echo All Good } ] } } }" > .forgejo/workflows/demo.yml ; echo "{ name: \"Demo All Good\", on: [push], jobs: { test: { runs-on: docker, steps: [ {uses: actions/checkout@v4}, { run: echo All Good } ] } } }" > .forgejo/workflows/demo.yml ;
echo "{ on: [push], jobs: { test_docker: { runs-on: ubuntu-22.04, steps: [ { run: docker info } ] } } }" > .forgejo/workflows/demo_docker.yml ; echo "{ name: \"Demo Docker\", on: [push], jobs: { test_docker: { runs-on: ubuntu-22.04, steps: [ { run: docker info } ] } } }" > .forgejo/workflows/demo_docker.yml ;
git add . ; git add . ;
git config user.email root@example.com ; git config user.email root@example.com ;
git config user.name username ; git config user.name username ;