I'm currently working on getting a good workflow going on, from development to a kubernetes deployment on cloud platform.
I'm pretty comfortable with various docker commands, but rewriting long commands each time is getting painful.
For example, for deploying docker images to google cloud I need to tag and push them to google gcloud.
docker tag my-image gcr.io/my-project/my-image:test gcloud docker -- push gcr.io/my-project/my-image This would obviously be quite painful to write out everyday, so for conveinience I could put these into package json and run them with something like npm run docker-image-release.
The question I have is - is mixing package.json and docker/deployment stuff frowned upon? Or is this a perfectly reasonable project structure?
If it is a bad idea - what's the best way to conveniently remember commands I'm using a lot?