-
Notifications
You must be signed in to change notification settings - Fork 15
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
1 parent
6d67f81
commit 3dd0ffc
Showing
3 changed files
with
12 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 | ||
|
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 |
---|---|---|
@@ -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 |
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