Commit version in the deployment
fra
HOBBYOP

10 months ago

Hello, I have a question about deployment, I've tried to have a look to the docs but I couldn't find anything, I'm deploying my service using a github action:

deploy-railway:
    name: Deploy app
    runs-on: ubuntu-latest
    needs: [test]
    if: github.ref == 'refs/heads/main'
    container: ghcr.io/railwayapp/cli:latest
    env:
      SVC_ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
      RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
    steps:
      - uses: actions/checkout@v3
      - run: railway up --service=${{ env.SVC_ID }}

I was wondering, is there a way to attach the git commit to the deployment details? something like:

railway up --service=${{ env.SVC_ID }} --commit=${{ GIT_COMMIT }}

Closed

5 Replies

10 months ago

Unfortunately we don't provide a way to attach additional metadata via railway up


fra
HOBBYOP

10 months ago

could this be something doable in the future? in my case is just for "best practices" and "nice to have", actually my app is not even in prod.😂 ....but for a bigger project/company having more visibility on what has been deployed it's a almost a must to have...so I'm just throwing the idea in the bucket

EDIT: actually, I meant to write this in the feedback channel 🤦


10 months ago

It definitely could be if we see a great enough need for it!


fra
HOBBYOP

10 months ago

gotcha! voted it 😂 thanks!


10 months ago

No problem!


Welcome!

Sign in to your Railway account to join the conversation.

Loading...