forked from picoCTF/picoCTF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality and document the redeploy-one tag
Allows more convenient development.
- Loading branch information
1 parent
5a1dc68
commit 4bffd61
Showing
6 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ | |
- web-static | ||
- shell-api | ||
- deploy-all | ||
- redeploy-one |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
# development convenience to undeploy/redeploy a challenge | ||
# expects: | ||
# slug (e.g. docker-world-867a1ac) | ||
# problem_dir (e.g. /picoCTF/problems/examples/on-demand/minimal/) | ||
# optional: | ||
# deploy_number (defaults to 2) | ||
|
||
- name: Undeploy existing problem ({{slug}}) | ||
command: "shell_manager undeploy -n {{deploy_number}} {{slug}}" | ||
|
||
- name: Uninstall existing problem | ||
command: "shell_manager uninstall {{slug}}" | ||
|
||
- name: Install revised problem ({{problem_dir}}) | ||
command: "shell_manager install {{problem_dir}}" | ||
|
||
- name: Redeploy revised problem | ||
command: "shell_manager deploy -n {{deploy_number}} {{slug}}" |
This file contains 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
This file contains 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