I have say this before, and I know that you and I don't agree but, morality involves conscious choice, and the choice to act in a manner that increases someone else’s moral good, then, is a moral act, and its opposite is an immoral act.
The development of modern morality is a process closely tied to the Sociocultural evolution of different peoples of humanity. Morality is a product of evolutionary forces acting at an individual level and also at the group level through group selection.
They are sets of self-perpetuating and ideologically-driven behaviors which encourage human cooperation. And it changes (evolve).
Take the Georgian era in England. In fact, the period between the Revolutionary War and the War of 1812 may very well have been the most debauched time in history.
People during the Regency were having a ton of sex, and a whole lot of that was before marriage. Divorce basically didn't exist in England until the 1850s, and even then only for wealthy men. So for people during the Georgian period, once you got married to someone you were pretty much stuck with them until one of you died of syphilis. But just like today, people wanted to make sure they were sexually compatible before marriage. This and the fact that birth control was basically nonexistent meant that by 1800 almost 40 percent of supposedly virginal brides were knocked up at their wedding. Almost 25 percent of first-born children were born out of wedlock completely.
At one point, only one of Mad King George's 13 children was legally married, yet he had at least 19 and possibly as many as 56 illegitimate grandchildren. And it wasn't like these kids were hidden away; his sons openly lived with (some of) the mothers of their illegitimate children, and it was common knowledge and reported in the press.
Prostitution was not only completely legal, guides were published every year informing men of where to find them, and what sort of things they were willing to do.
If it turned out you couldn't stand your partner after you married them, no problem; affairs were unbelievably common as well, especially among the upper classes. Spouses just turned a blind eye to the other's philandering. The Duke of Devonshire even moved his mistress into his home and lived openly with both her and his wife for 25 years, and everyone in the country knew about it. But women gave as good as they got, and the Duchess gave birth to a daughter she conceived during one of her affairs with the future Prime Minister Charles Grey.
19th century England makes the modern world look tame. Answering the title (What is a morally upright life?), it going to depend on where in the world you live, and in with era.