File too large on Gitlab CI/CD
Hi, i'm trying to add a CI/CD to my project but the deploy part always fail saying . But when i'm doing the same thing in my terminal it works just fine. Would you have an idea what i'm missing ?
23 Replies
Project ID:
3f04c542-6a1b-4f34-9230-cf3922e8a905
3f04c542-6a1b-4f34-9230-cf3922e8a905
that's what? 350 megabytes?
the limit is 40 as far as I know.
It's a nestjs api and nextjs api
Nothing really exceptional here
download a zip of the repo, how big is the zip?
5,9 Mb
then something you are doing is generating 345mb worth of data before uploading
why do you have build stages in your action file?
It's not a good practice to have three stages in the CI/CD, test => build => deploy ?
why not let railway do the building? it's not like they charge for the builder, and it's not like they are going to push the deployment if the build fails
This is really true thank you so much haha
I'll try like that
sounds good
I greatly reduced my action file :
But the problem stay the same :
you don't have anything in lfs?
I never used git lfs so far, my api is really not that big
I mean railway isn't making up these numbers, the large upload data is coming from somewhere
zipped my api is 168 KB. Would it be possible that it is trying to push something with it ? Like railway itself that i just installed ? Idk i'm just trying to understand haha
I mean it shouldn't, but even so, the railway binary isn't going to be anywhere near 320mb
Yeah but in that case how can we explain that it's working just fine from the terminal ?
There must be a difference between the two of them, something is trying to be pushed that isn't when i do it manually ?
I mean gitlab ci environment and your local environment are vastly different things
forgive me for asking as I know this is not a real solution, but simply moving your code over to github is not an option right?
It's a possibility, do you think it might resolve the problem ?
well there would be no need for the action file as railway can deploy straight from a github repo
I will try to do that, thanks for your help, still feels weird about this problem tho
I agree, I am stumped