It's worth noting that governments have long tried to harness social pressure to get what they want... and it's not necessarily a bad thing. To take an example from the UK drink-driving used to be endemic and the government's laws and restrictions relating to it considered a bit of a joke. But after a series of government ad campaigns society's views of drink driving changed completely and it generally became socially unacceptable to drink drive.
It's also worth noting that things akin to being a "good citizen" have also gained prominence in recent times, especially online. They make lack the governmental mandate but callout culture has produced "virtue signalling" on all sides of a debate; the idea that you're posting something (be it praising someone or criticising someone else) not just because you agree/disagree but because you want to demonstrate that you're a "good" person who's on a certain side. Recent online controversies have led to blockbots (i.e. automatically blocking someone on twitter because they follow the "wrong" people, and in some cases with a database linked listing people's "sins"), "hacks" on Reddit that reveal which subreddits (basically themed forums) someone is subscribed too/has posted in and in some cases the automatic prevention of someone posting in certain subreddits because they posted in others (which generally don't take account of the content of what was posted; to give one example several subreddits automatically block anyone who's posted on the pro-Gamergate KIA subreddit even if your post on KIA was entirely critical of Gamergate and the thought process behind it). The way that there are frequently demands for someone to lose their job if they post an opinion you disagree with online, even if that opinion has no direct impact on their job, can also be seen in that context. Hell, the entire "safe space" phenomena as generally construed these days can be seen in the same light; if someone has the "wrong" opinion they should be isolated.
The latter points may not relate to being "patriotic", instead focusing on being "good" (or, not use current terminology "not problematic") and, as above, lack a direct governmental mandate but the same themes are clearly there.