Skip to content

Github action invoking railway config plan fails with Failed to run node to evaluate the IaC file #1130

Description

@sergiocampama

Example github action:

name: Deploy Production

on:
  workflow_dispatch:

jobs:
  deploy:
    name: Deploy to production
    runs-on: ubuntu-latest
    container: ghcr.io/railwayapp/cli:latest
    environment:
      name: production
    env:
      RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
      RAILWAY_GIT_COMMIT_SHA: ${{ github.sha }}
    steps:
      - uses: actions/checkout@v7
      - run: railway --version
      - run: railway config plan
      - run: railway config apply --yes
      - run: railway up --ci --service=frontend
        background: true
      - run: railway up --ci --service=worker.high
        background: true
      - run: railway up --ci --service=worker.default
        background: true
      - run: railway up --ci --service=worker.low
        background: true
      - run: railway up --ci --service=worker.webhooks
        background: true
      - name: Wait for all deployments
        wait-all:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions