The jig/gig is up

Trying to clarify a phrase to a friend, is it: the "gig" is up, or is it the "jig" is up?

Replies