Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelPelegrina authored May 14, 2024
1 parent 3584c23 commit 256f816
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build Docker image
run: docker build . --file Dockerfile
- name: Cache Docker layers
uses: docker/layer-cache@v3
with:
key: ${{ runner.os }}-docker-${{ hashFiles('./Dockerfile') }}

- name: Build Docker image (using cache)
run: |
docker build --cache-from ${{ steps.docker_layer_cache.outputs.layer_cache }} -t ${{ steps.docker_image_name.outputs.image_name }} .
- uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 256f816

Please sign in to comment.