Mike
Mike
RRailway
Created by Mike on 5/27/2024 in #✋|help
railway up from a github action using the npm cli and project token returns 404
project id: ae1a2210-7167-4fcb-b1a8-f3ef6b2672f2 Is this the correct way to deploy in ci? I generated a production token for the project and set it in my repo on RAILWAY_TOKEN and backend is an empty service The error is Failed to upload code with status code 404 Not Found This is my full action:
name: deploy

on:
workflow_run:
workflows: ['checks']
types:
- completed
jobs:
deploy:
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm i -g @railway/cli
- run: railway up --service backend
name: deploy

on:
workflow_run:
workflows: ['checks']
types:
- completed
jobs:
deploy:
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm i -g @railway/cli
- run: railway up --service backend
3 replies
RRailway
Created by Mike on 7/15/2023 in #✋|help
Any way to skip automatic deployment, maybe with a [skip deploy] in my commit msg?
Just like github allows us to bypass a CI run with [skip ci] in my commits. I just don't want to trigger deploys when I'm just updating my docs.
4 replies
RRailway
Created by Mike on 7/4/2023 in #✋|help
aspnetcore with nixpacks breaking, builds ok with my own Dockerfile
getting this error on build with the default nixpack, SDK Version: 6.0.403 (setting the NIXPACKS_CSHARP_SDK_VERSION to 7.0 doesn't change that):
Dockerfile:19
-------------------
17 | # install phase
18 | COPY . /app/.
19 | >>> RUN dotnet restore
20 |
21 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c dotnet restore" did not complete successfully: exit code: 1

Error: Docker build failed
Dockerfile:19
-------------------
17 | # install phase
18 | COPY . /app/.
19 | >>> RUN dotnet restore
20 |
21 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c dotnet restore" did not complete successfully: exit code: 1

Error: Docker build failed
trying to use the nixpack to see if "just works", but something is wrong there it builds with my own Dockerfile, but I'm having a H A R D time figuring out the certificate trust thing, so my app just bricks and doesn't respond when built this way first time deploying aspnetcore - used to deploying only nodejs, so I'm most likely doing something dumb
4 replies