From 610efbd07157b98744d2e3b8e35d16554483d8d6 Mon Sep 17 00:00:00 2001 From: ekneg54 Date: Mon, 7 Oct 2024 13:30:28 +0200 Subject: [PATCH] test container image before push --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41bb9d262..81a683496 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,6 +111,21 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and export to Docker + uses: docker/build-push-action@v6 + with: + context: . + load: true + build-args: | + LOGPREP_VERSION=dev + PYTHON_VERSION=${{ matrix.python-version }} + tags: | + ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-${{ github.head_ref }} + + - name: Test + run: | + docker run --rm ghcr.io/fkie-cad/logprep:py${{ matrix.python-version }}-${{ github.head_ref }} --version + - name: Build images uses: docker/build-push-action@v5 with: