-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
205 changed files
with
5,334 additions
and
8,156 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -19,7 +19,9 @@ env: | |
# License for the base container image | ||
CONTAINER_IMAGE_LICENSE: BSD-3-Clause | ||
# Path to the agent code | ||
AGENT_CODE_PATH: Payload_Type/thanatos/thanatos/agent_code | ||
AGENT_CODE_PATH: Payload_Type/thanatos/agent | ||
# Path to the Mythic code | ||
MYTHIC_CODE_PATH: Payload_Type/thanatos/mythic | ||
|
||
jobs: | ||
# Get the new release version number | ||
|
@@ -88,6 +90,12 @@ jobs: | |
- name: Lowercase the container image name | ||
run: echo "CONTAINER_IMAGE_NAME=${CONTAINER_IMAGE_NAME,,}" >> ${GITHUB_ENV} | ||
|
||
- name: Install Poetry | ||
run: | | ||
python -m ensurepip | ||
python -m pip install --upgrade pip | ||
python -m pip install poetry | ||
- name: Set config.json version number | ||
uses: jossef/[email protected] | ||
with: | ||
|
@@ -114,6 +122,12 @@ jobs: | |
VERSION: ${{ needs.version.outputs.number }} | ||
run: sed -i "0,/^version = .*$/s//version = \"${VERSION}\"/" Cargo.toml | ||
|
||
- name: Set Mythic code version number | ||
working-directory: ${{ env.MYTHIC_CODE_PATH }} | ||
env: | ||
VERSION: ${{ needs.version.outputs.number }} | ||
run: poetry version ${VERSION} | ||
|
||
- name: Push the updated version number changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
|
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,45 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Deploy changes", | ||
"type": "shell", | ||
"options": { | ||
"cwd": "${workspaceFolder}", | ||
}, | ||
"command": "ssh", | ||
"args": [ | ||
"mythic", | ||
"./redeploy.sh", | ||
], | ||
"group": "build", | ||
"dependsOn": [ | ||
"Build base Docker image" | ||
] | ||
}, | ||
{ | ||
"label": "Build base Docker image", | ||
"type": "shell", | ||
"options": { | ||
"cwd": "${workspaceFolder}/Payload_Type/thanatos", | ||
}, | ||
"command": "docker", | ||
"args": [ | ||
"build", | ||
"-f", | ||
".docker/Dockerfile", | ||
"-t", | ||
"ghcr.io/mythicagents/thanatos:${input:tag}", | ||
"." | ||
], | ||
"group": "build" | ||
} | ||
], | ||
"inputs": [ | ||
{ | ||
"id": "tag", | ||
"description": "Image tag", | ||
"type": "promptString" | ||
} | ||
] | ||
} |
Oops, something went wrong.