I chuckled at this - "even governments" you say, as if governments are far worse than cigarette companies. I've known several idealistic folks with government jobs because they seemed to think the government was the best way for them to help others while making a living, but we all see the world differently (and government is quite broad).
In any case, I'd recommend you identify whatever organizations (or types of organizations) that you see as positive in the world and seek employment there with your existing skill set. That way you get in the door in a position where you provide value, but once you're there you can hopefully be exposed to things that inspire you and perhaps find pathways to become more involved in the core of that business, if you'd prefer that to more DevOps stuff.
Maybe you could find a job at the Red Cross for example, if you're inspired by their mission: https://americanredcross.wd1.myworkdayjobs.com/en-US/America...
Some people, some times, find it meaningful to serve other people food. For others it is just a job. Certainly such a person could collect resentments about the people they serve food to and for.
The marketplace ensures that, much of the time, money flows against the gradient of a want, such that your activity pleases somebody somewhere.
It is fair to put some energy into a personal pursuit that improves your own feeling of purpose.
I would suggest two options:
A) Try to make as much money as you can and use that money to help humanity. We are all extremely lucky to be in tech at this time, when compensation is massively higher than most other jobs. You could leverage your ability to make money and then donate that money to charities you believe in.
B) Find companies who have missions you actually agree with. While these are rare and don't always pay as well, they do exist. There are non-profits (and for profits) trying to solve homelessness, world hunger, inequality, discrimination, climate change, etc. Every type of company needs software developers. You just might have to take a paycut.
Good luck!