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

7 messages · Page 1 of 1 (latest)

unreal pond
#

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


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 }}```
sly kernelBOT
#

Project ID: N/A

unreal pond
shut hull
#

what is the error it fails with?

unreal pond
#

it says ended with status 1

unreal pond
unreal pond
#

@shut hull