File tree Expand file tree Collapse file tree
C2_Profiles/basic_logger/.docker Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 # types: [published]
1010 push :
1111 branches :
12- - ' Mythic3.3'
1312 - ' main'
1413 tags :
1514 - " v*.*.*"
6867 uses : docker/build-push-action@v5 # ref: https://github.com/marketplace/actions/build-and-push-docker-images
6968 with :
7069 context : C2_Profiles/basic_logger
71- file : C2_Profiles/basic_logger/.docker/ Dockerfile
70+ file : C2_Profiles/basic_logger/Dockerfile
7271 tags : |
7372 ${{ env.REGISTRY }}/${{ env.AGENT_IMAGE_NAME }}:${{ env.VERSION }}
7473 ${{ env.REGISTRY }}/${{ env.AGENT_IMAGE_NAME }}:latest
9897 - name : Lowercase the container image name
9998 run : echo "AGENT_IMAGE_NAME=${AGENT_IMAGE_NAME,,}" >> ${GITHUB_ENV}
10099
101- # The Dockerfile which Mythic uses to pull in the base container image needs to be
102- # updated to reference the newly built container image
103- - name : Fix the server Dockerfile reference to reference the new release tag
104- working-directory : C2_Profiles/basic_logger
105- run : |
106- sed -i "s|^FROM ghcr\.io.*$|FROM ${REGISTRY}/${AGENT_IMAGE_NAME}:${VERSION}|" Dockerfile
107-
108100 - name : Update package.json version
109101 uses : jossef/action-set-json-field@v2.1
110102 with :
@@ -118,7 +110,7 @@ jobs:
118110 uses : EndBug/add-and-commit@v9 # ref: https://github.com/marketplace/actions/add-commit
119111 with :
120112 # Only add the Dockerfile changes. Nothing else should have been modified
121- add : " ['C2_Profiles/basic_logger/Dockerfile', ' config.json']"
113+ add : " ['config.json']"
122114 # Use the Github actions bot for the commit author
123115 default_author : github_actions
124116 committer_email : github-actions[bot]@users.noreply.github.com
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments