From 3dd0ffcf6376aaf14ced852cea20358948320ebe Mon Sep 17 00:00:00 2001 From: its-a-feature Date: Sat, 20 Jan 2024 12:50:58 -0600 Subject: [PATCH] testing updating config.json too --- .github/workflows/docker.yml | 11 +++++++++-- Payload_Type/apfell/Dockerfile | 7 +------ config.json | 3 ++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 782aa52..f728d19 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -23,7 +23,7 @@ env: AGENT_IMAGE_NAME: ${{ github.repository }} # Description label for the package in Github - IMAGE_DESCRIPTION: ${{ github.repository }} agent container for use with Mythic + IMAGE_DESCRIPTION: ${{ github.repository }} container for use with Mythic # Source URL for the package in Github. This links the Github repository packages list # to this container image @@ -105,13 +105,20 @@ jobs: run: | sed -i "s|^FROM ghcr\.io.*$|FROM ${REGISTRY}/${AGENT_IMAGE_NAME}:${VERSION}|" Dockerfile + - name: Update package.json version + uses: jossef/action-set-json-field@v2.1 + with: + file: config.json + field: remote_image + value: ${REGISTRY}/${AGENT_IMAGE_NAME}:${VERSION} + # Push the changes to the Dockerfile - name: Push the updated base Dockerfile image reference changes if: ${{ github.ref_type == 'tag' }} uses: EndBug/add-and-commit@v9 # ref: https://github.com/marketplace/actions/add-commit with: # Only add the Dockerfile changes. Nothing else should have been modified - add: "['Payload_Type/apfell/Dockerfile']" + add: "['Payload_Type/apfell/Dockerfile', 'config.json']" # Use the Github actions bot for the commit author default_author: github_actions committer_email: github-actions[bot]@users.noreply.github.com diff --git a/Payload_Type/apfell/Dockerfile b/Payload_Type/apfell/Dockerfile index 8b8f5c5..979b741 100644 --- a/Payload_Type/apfell/Dockerfile +++ b/Payload_Type/apfell/Dockerfile @@ -1,6 +1 @@ -FROM ghcr.io/mythicagents/apfell:v0.0.1 -#FROM itsafeaturemythic/mythic_python_base:latest - -#WORKDIR /Mythic/ - -#CMD ["python3", "main.py"] \ No newline at end of file +FROM ghcr.io/mythicagents/apfell:v0.0.1 \ No newline at end of file diff --git a/config.json b/config.json index ee9da21..15dac9a 100644 --- a/config.json +++ b/config.json @@ -3,5 +3,6 @@ "exclude_c2_profiles": false, "exclude_documentation_payload": false, "exclude_documentation_c2": false, - "exclude_agent_icons": false + "exclude_agent_icons": false, + "remote_image": "ghcr.io/mythicagents/apfell:v0.0.1" }