Files
werf-actions/run
Javier Carrillo 128facbd37 chore(actions): update Node.js runtime from node20 to node24
Node.js 20 reaches EOL in April 2026 and GitHub Actions is deprecating
node20 runners. GitHub is skipping node22 and moving directly to node24.
All action.yml files updated to use node24 runtime.

Closes #87

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 12:19:55 -04:00
..
2024-04-24 14:03:13 +01:00

___

The action combines all the necessary steps in itself and logic may be divided into environment setup and launching werf run.

Inputs

inputs:
  channel:
    description: 'The one of the following channel: alpha, beta, ea, stable, rock-solid'
    default: 'stable'
    required: false
  version:
    description: 'The certain version'
    required: false
  image:
    description: 'The image name from werf.yaml (werf run [options] [IMAGE_NAME] [-- COMMAND ARG...])'
    required: false
  args:
    description: 'The specific command with arguments (werf run [options] [IMAGE_NAME] [-- COMMAND ARG...])'
    required: false
  github-token:
    description: 'The GitHub token used to login and to interact with Docker Github Packages'
    default: ${{ github.token }}
    required: false
  kube-config-base64-data:
    description: 'Base64 encoded kubeconfig data used for deployment, cleanup and distributed locks'
    required: false

Example

run: 
  name: Run
  runs-on: ubuntu-latest
  steps:
  
    - name: Checkout code
      uses: actions/checkout@v4
      with:
        fetch-depth: 0

    - name: Run
      uses: werf/actions/run@v2
      with:
        image: backend
        args: rails server
        kube-config-base64-data: ${{ secrets.KUBE_CONFIG_BASE64_DATA }}
      env:
        WERF_DOCKER_OPTIONS: "-d -p 3000:3000"