Skip to content

Commit

Permalink
ci: use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fl42 committed Oct 23, 2024
1 parent b4f93da commit da5de20
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,30 @@ jobs:
- ubuntu-20.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

# Cache must be per OS and kernel version
- name: Set up Cache
uses: actions/cache@v3
with:
path: |
.cache/docker
key: cache-${{ runner.os }}-$(uname -r)

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image
run: |
docker build -t tls-traffic-analyzer:latest --no-cache --build-arg BASE_IMAGE=$(echo ${{ matrix.os }} | sed s/-/:/) -f docker/Dockerfile .
uses: docker/build-push-action@v6
with:
file: docker/Dockerfile
tags: tls-traffic-analyzer:latest
push: false
load: true
build-args: BASE_IMAGE=$(echo ${{ matrix.os }} | sed s/-/:/)
cache-from: type=local,src=.cache/docker
cache-to: type=local,src=.cache/docker

- name: Start container
run: |
Expand Down

0 comments on commit da5de20

Please sign in to comment.