Skip to the content
Forge

Your first run

Start it

Open your project and choose New run. Fill in:

  • Image: a container image, for example alpine:3.20.
  • Commands: what to run in it. Add one command, echo "Hello from Forge" && uname -a.

The New run form: where the run runs, its image, registry and commandThe New run form: where the run runs, its image, registry and command

Leave the rest as it is and choose Start run. The run's page opens.

Follow it

A run goes through a few states: queued while it waits for a runner, pulling its image, starting, running, and then succeeded, failed, timed out or cancelled. The page shows each state as it happens, the output as it is written, and the CPU and memory the run uses.

A run's page: its state, its details and its outputA run's page: its state, its details and its output

When it has ended you can:

  • read the whole output, and the files it left as artifacts;
  • Re-run with debug: start it again and open a shell in its container when it fails, to look around.

The same as a file

The form makes a run spec. The same run as YAML:

version: 1
image: alpine:3.20
commands:
  - name: hello
    run: echo "Hello from Forge" && uname -a

Keep it in your repository as .forge/run.yaml (a run file needs the version: 1 line): a Git trigger starts it on a runner when you push, and forge run --local (see the command line) runs it with your own Docker.

If it waits

A run that stays queued is waiting for a runner that fits it. Its page says why: for example no runner is online with the labels it asks for, or your organization's quota or budget is used up. Without runners of your own, runs go to the shared runners; see add a runner to use your own.