Skip to content

Commit

Permalink
testing updating config.json too
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Jan 20, 2024
1 parent 6d67f81 commit 3dd0ffc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
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
Expand Down
7 changes: 1 addition & 6 deletions Payload_Type/apfell/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
FROM ghcr.io/mythicagents/apfell:v0.0.1
#FROM itsafeaturemythic/mythic_python_base:latest

#WORKDIR /Mythic/

#CMD ["python3", "main.py"]
FROM ghcr.io/mythicagents/apfell:v0.0.1
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 3dd0ffc

Please sign in to comment.