Gitlab CI Runner
This is a simple example of a Gitlab CI YAML configuration file. It uses a busybox image to run a basic echo command.
YAML Configuration
stages:
- run
deploy:
stage: run
image:
name: busybox:latest
entrypoint:
- "/usr/bin/env"
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
script:
- echo hi
Explanation
This configuration defines a single stage named "run". The job "deploy" runs within this stage. It uses the busybox:latest Docker image, which is a minimal Linux environment. The entrypoint is overridden to ensure the correct PATH environment variable is set. Finally, the script section executes the simple "echo hi" command.