Skip to content

Commit

Permalink
Trying to fix buildx cache busting by using the same tags for all the…
Browse files Browse the repository at this point in the history
… build actions
  • Loading branch information
nmofonseca committed Jun 5, 2024
1 parent 5e76f14 commit b26169b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
load: true # Export to Docker Engine rather than pushing to a registry
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=imagecve
cache-to: type=gha,mode=max,scope=imagecve
platforms: linux/amd64


Expand All @@ -77,8 +77,8 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=imagefinal
cache-to: type=gha,mode=max,scope=imagefinal


## Totally optional, but if you want to add the image tags to the PR comments you can use the following steps
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update && apt upgrade -y && apt-get install -y curl \
apache2-utils \
telnet \
redis-tools \
liburi-perl \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
&& useradd -ms /bin/bash nettools
Expand Down

0 comments on commit b26169b

Please sign in to comment.