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