Skip to main content

Run Step

Properties

  • script - string
    The script to run.

  • shell - string
    The shell in which the script is run

    enum values:

    • sh
    • bash
    • powershell
    • pwsh
  • envs - map[string]string
    The environment variables.

  • container - Container, string
    The container in which the script is run

  • mount - Mount
    The volumes mounted into the container

Examples

Run step.

steps:
- type: run
spec:
script: go build
container: golang

Run step with container details.

steps:
- type: run
spec:
script: go build
container:
image: golang
pull: if-not-exists
AIDA logo
AIDA logo

Harness AIDA Chatbot

AI Development Assistant


Today, May 12, 10:34am

AIDA logo

Accelerate your software delivery with the powerful capabilities of Harness’s Platform.

AIDA logo

How can I help?

Log into your Harness Account to access AIDA