removed pushing image

This commit is contained in:
2025-08-05 19:37:31 +02:00
parent 59e5677ca4
commit 2ac3111387
2 changed files with 9 additions and 19 deletions

View File

@@ -157,18 +157,20 @@ jobs:
--load \
-t ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} .
- name: Tag and Push Linux Docker image
if: ${{ success() }}
- name: Save Docker image as artifact
run: |
echo "Tagging Linux Docker image"
docker tag ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
echo "Pushing Linux Docker image to registry: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}"
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
docker save ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} -o linux-image.tar
- name: Upload Docker image artifact
uses: actions/upload-artifact@v3
with:
name: linux-docker-image
path: linux-image.tar
cleanup:
name: Cleanup
if: always()
needs: [docker-build, native-build, windows-cross, windows-docker-build]
needs: [docker-build, native-build, windows-cross]
runs-on: ubuntu-latest
steps:
- name: Cleanup Docker images

View File

@@ -1,12 +0,0 @@
# Using Windows Server Core as base
FROM mcr.microsoft.com/windows/servercore:ltsc2022
# Create app directory
WORKDIR C:/app
# Copy the Windows binary
ARG BINARY_NAME
ENV BINARY_NAME=${BINARY_NAME:-WatcherAgent}
COPY windows-bin/${BINARY_NAME}.exe .
ENTRYPOINT ["C:/app/${BINARY_NAME}.exe"]