Skip to content

Instantly share code, notes, and snippets.

@emmanuel
Created November 1, 2018 22:20
Show Gist options
  • Save emmanuel/ce6c65988a20332f7b65c8c8964f19c3 to your computer and use it in GitHub Desktop.
Save emmanuel/ce6c65988a20332f7b65c8c8964f19c3 to your computer and use it in GitHub Desktop.
Image Tag State Machine
Image Tag State Machine
Dev-Next
deployed -> Dev-Current
Dev-Current
deployed -> Dev-Previous
promoted -> Stage-Next
Dev-Previous
rolledback -> Dev-Next
Stage-Next
deployed -> Stage-Current
Stage-Current
deployed -> Stage-Previous
promoted -> Prod-Next
Stage-Previous
rollback -> Stage-Next
Prod-Next
deployed -> Prod-Current
Prod-Current
deployed -> Prod-Previous
Prod-Previous
rollback -> Prod-Next
Published
published -> Dev-Next
function render(model){
let current_state_name = model.active_states[0].name;
return $("h1",
{style: {color: "darkBlue"}},
`The current state is: ${current_state_name}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment