github action to trigger deployment after pushing new docker image in hub.
codezuma
FREEOP

a year ago

I am building docker image for my app and publishing it on docker hub I need to trigger reployement with new source image via github action this seems to fail always
```name: Deploy Backend App

on:
workflow_dispatch:
push:

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout repository
uses: actions/checkout@v3

  - name: Setup pnpm
    uses: pnpm/action-setup@v3
    with:
      version: 10

  - name: Install Railway CLI
    run: pnpm install -g @railway/cli

  - name: Deploy to Railway
    run: |

      # Link to the project with CLI
      railway link --project ${{ secrets.RAILWAY_PROJECT_ID }}

      # Use CLI to trigger redeploy
      railway redeploy
    env:
      RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}```

6 Replies

codezuma
FREEOP

a year ago

N/A


brody
EMPLOYEE

a year ago

what is the error it fails with?


codezuma
FREEOP

a year ago

it says ended with status 1


codezuma
FREEOP

a year ago

it says ended with status 1


codezuma
FREEOP

a year ago

@Brody


brody
EMPLOYEE

a year ago

I'm sorry but I would need an actual error message


Loading...