ci: update Docker build context from apollo to ares

Update the GitHub Actions workflow and Dockerfile to reflect the renaming of the payload type directory from 'apollo' to 'ares'. This ensures the Docker image is built from the correct source directory and dependencies are fetched from the updated location.
This commit is contained in:
Aryma
2026-04-14 14:39:36 +07:00
parent db10c1169e
commit 4b94dc3e69
2 changed files with 5 additions and 5 deletions

View File

@@ -67,8 +67,8 @@ jobs:
- name: Build and push the server container image - name: Build and push the server container image
uses: docker/build-push-action@v5 # ref: https://github.com/marketplace/actions/build-and-push-docker-images uses: docker/build-push-action@v5 # ref: https://github.com/marketplace/actions/build-and-push-docker-images
with: with:
context: Payload_Type/apollo context: Payload_Type/ares
file: Payload_Type/apollo/Dockerfile file: Payload_Type/ares/Dockerfile
tags: | tags: |
${{ env.REGISTRY }}/${{ env.AGENT_IMAGE_NAME }}:${{ env.VERSION }} ${{ env.REGISTRY }}/${{ env.AGENT_IMAGE_NAME }}:${{ env.VERSION }}
${{ env.REGISTRY }}/${{ env.AGENT_IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.AGENT_IMAGE_NAME }}:latest

View File

@@ -17,7 +17,7 @@ RUN /venv/bin/python -m pip install git+https://github.com/MEhrn00/donut.git@v2.
COPY [".", "."] COPY [".", "."]
# fetch all dependencies # fetch all dependencies
RUN cd apollo/agent_code && dotnet restore --verbosity quiet && rm donut ; cp /donut donut RUN cd ares/agent_code && dotnet restore --verbosity quiet && rm donut ; cp /donut donut
RUN cd apollo/agent_code && cp COFFLoader.dll /COFFLoader.dll RUN cd ares/agent_code && cp COFFLoader.dll /COFFLoader.dll
CMD ["bash", "-c", "cp /donut apollo/agent_code/donut && /venv/bin/python main.py"] CMD ["bash", "-c", "cp /donut ares/agent_code/donut && /venv/bin/python main.py"]