Skip to content

Commit

Permalink
Tc
Browse files Browse the repository at this point in the history
  • Loading branch information
msune committed Sep 13, 2024
1 parent 6d84530 commit bcce0d1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/regression_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,18 @@ jobs:

### Step 2: Retrieve all other necessary images from Docker Hub and store as artifacts
### (to avoid possible Docker Hub pull limits)
hub-pulled-docker:
cache-docker-images:
runs-on: ubuntu-22.04
steps:
- name: Checkout pmacct
uses: actions/checkout@v4
with:
path: pmacct
fetch-depth: 0
fetch-tags: 1

- name: Build containers
uses: ./pmacct/.github/actions/build_containers/

- name: Download images and prepare artifacts
run: |
Expand All @@ -86,11 +91,12 @@ jobs:
docker image pull $SCHEMAREGISTRY_IMG
docker image pull $REDIS_IMG
echo "List Images"
docker images | grep 'confluentinc\|redis'
docker images
echo
echo "Saving images as artifacts..."
mkdir -p /tmp/docker/
docker save -o /tmp/docker/hub_pulled_docker_images.tar $ZOOKEEPER_IMG $KAFKA_IMG $SCHEMAREGISTRY_IMG $REDIS_IMG
PMACCT_IMAGES=$(docker image ls | grep "_build" | sed 's#docker.io/library/##g')
docker save -o /tmp/docker/hub_pulled_docker_images.tar $ZOOKEEPER_IMG $KAFKA_IMG $SCHEMAREGISTRY_IMG $REDIS_IMG $PMACCT_IMAGES
- name: Upload Artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -121,7 +127,7 @@ jobs:
### Step 4: Setup Framework and Run Tests
pytest-runtests:
needs: [collect-tests, traf-repro-docker, hub-pulled-docker]
needs: [collect-tests, traf-repro-docker, cache-docker-images]
runs-on: ubuntu-22.04
env:
SKIP: 'false'
Expand All @@ -137,9 +143,6 @@ jobs:
fetch-depth: 0
fetch-tags: 1

- name: Build containers
uses: ./pmacct/.github/actions/build_containers/

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit bcce0d1

Please sign in to comment.