Skip to content

Commit 5a303fc

Browse files
committed
updating docker build flow
1 parent 09665d9 commit 5a303fc

2 files changed

Lines changed: 2 additions & 29 deletions

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
# types: [published]
1010
push:
1111
branches:
12-
- 'Mythic3.3'
1312
- 'main'
1413
tags:
1514
- "v*.*.*"
@@ -68,7 +67,7 @@ jobs:
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
@@ -98,13 +97,6 @@ jobs:
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

C2_Profiles/basic_logger/.docker/Dockerfile

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)