From 9dd8e4c596b7439d5e852295a4dc4c25a353bc02 Mon Sep 17 00:00:00 2001 From: FL42 <46161216+fl42@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:20:51 +0200 Subject: [PATCH] ci: fix --- .github/workflows/e2e.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 1c8f471..ffa3f76 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -5,6 +5,10 @@ on: branches: - master +concurrency: + group: e2e-${{ github.ref }} + cancel-in-progress: true + jobs: e2e: strategy: @@ -19,10 +23,6 @@ jobs: run: | docker build -t tls-traffic-analyzer:latest --no-cache --build-arg BASE_IMAGE=$(echo ${{ matrix.os }} | sed s/-/:/) -f docker/Dockerfile . - - name: Get netwok interface - run: | - ip -4 route | awk '/default/{print $5}' >> $GITHUB_ENV - - name: Start container run: | docker run \ @@ -32,7 +32,7 @@ jobs: --network host \ --pid host \ tls-traffic-analyzer:latest \ - -i $INTERFACE -o /dumps --chown-traffic-dumps $UID --commands curl + -i $(ip -4 route | awk '/default/{print $5}') -o /dumps --chown-traffic-dumps $UID --commands curl - name: Sleep and show logs run: sleep 5 && docker logs $(docker ps -q)