Created
November 1, 2018 22:20
-
-
Save emmanuel/ce6c65988a20332f7b65c8c8964f19c3 to your computer and use it in GitHub Desktop.
Image Tag State Machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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