-
Start an Octopus instance, create a project and name it
Wordle
(name doesn't matter...). -
Create 5 environments, name them
1
~5
. Remove any other environments. -
Download the
generate-answer.js
file in this repo, and run it locally with Node ($ node ./generate-answer.js
). This will give you a random base64-encoded 5-letter word, this is the answer you will be trying to guess. -
In project variables, create the following variables.
Answer
is the base64-encoded word you just got from last step.Guess
is your first guess ("brown" in my case). You will be changing this value in each round until you get the correct answer. -
In the "Process" section, add a "Run a Script" step. Use Powershell as the language and copy over the content of
script.ps1
file in this repo. Make sure you select "Run on Octopus Server" if you use a local Octopus instance. -
In project settings, set the release version template to be
#{Guess}
. -
Go back to the "Overview" section. A successful deployment means the letter is in the answer and in correct spot. A "successful with warning" deployment means the letter is in the answer, but in a wrong spot. A failed deployment means the letter is not in the answer.
-
Change the value of the
Guess
variable and deploy again. Repeat this process until you get 5 successful deployments!
bridgecrew-perf7 / wordle Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bridgecrew-perf6/wordle-1
Play Wordle using Octopus Deploy.