Skip to content

Commit 0e9652c

Browse files
authored
GHA: Remove Docker Caches (#10928)
1 parent 837d8a9 commit 0e9652c

2 files changed

Lines changed: 1 addition & 23 deletions

File tree

.github/workflows/build-docker-images-for-testing.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ jobs:
4545
tags: defectdojo/defectdojo-${{ matrix.docker-image }}:${{ matrix.os }}
4646
file: Dockerfile.${{ matrix.docker-image }}-${{ matrix.os }}
4747
outputs: type=docker,dest=${{ matrix.docker-image }}-${{ matrix.os }}_img
48-
cache-from: type=gha,scope=${{ matrix.docker-image }}
49-
cache-to: type=gha,mode=max,scope=${{ matrix.docker-image }}
50-
48+
5149
# export docker images to be used in next jobs below
5250
- name: Upload image ${{ matrix.docker-image }} as artifact
5351
timeout-minutes: 10

.github/workflows/release-x-manual-docker-containers.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,6 @@ jobs:
4949
id: buildx
5050
uses: docker/setup-buildx-action@v3
5151

52-
- name: Cache Docker layers
53-
uses: actions/cache@v4
54-
env:
55-
docker-image: ${{ matrix.docker-image }}
56-
with:
57-
path: /tmp/.buildx-cache-${{ env.docker-image }}
58-
key: ${{ runner.os }}-buildx-${{ env.docker-image }}-${{ matrix.os }}-${{ env.workflow_name }}-${{ github.sha }}-${{ github.run_id }}
59-
restore-keys: |
60-
${{ runner.os }}-buildx-${{ env.docker-image }}-${{ matrix.os }}-${{ env.workflow_name}}-${{ github.sha }}
61-
${{ runner.os }}-buildx-${{ env.docker-image }}-${{ matrix.os }}-${{ env.workflow_name }}
62-
${{ runner.os }}-buildx-${{ env.docker-image }}-${{ matrix.os }}-
63-
6452
- name: Build and push images with debian
6553
if: ${{ matrix.os == 'debian' }}
6654
uses: docker/build-push-action@v6
@@ -73,8 +61,6 @@ jobs:
7361
tags: ${{ env.REPO_ORG }}/defectdojo-${{ env.docker-image}}:${{ github.event.inputs.release_number }}-${{ matrix.os }}, ${{ env.REPO_ORG }}/defectdojo-${{ env.docker-image}}:${{ github.event.inputs.release_number }}, ${{ env.REPO_ORG }}/defectdojo-${{ env.docker-image}}:latest
7462
file: ./Dockerfile.${{ env.docker-image }}-${{ matrix.os }}
7563
context: .
76-
cache-from: type=local,src=/tmp/.buildx-cache-${{ env.docker-image }}
77-
cache-to: type=local,dest=/tmp/.buildx-cache-${{ env.docker-image }}
7864

7965
- name: Build and push images with alpine
8066
if: ${{ matrix.os == 'alpine' }}
@@ -88,9 +74,3 @@ jobs:
8874
tags: ${{ env.REPO_ORG }}/defectdojo-${{ env.docker-image}}:${{ github.event.inputs.release_number }}-${{ matrix.os }}
8975
file: ./Dockerfile.${{ env.docker-image }}-${{ matrix.os }}
9076
context: .
91-
cache-from: type=local,src=/tmp/.buildx-cache-${{ env.docker-image }}
92-
cache-to: type=local,dest=/tmp/.buildx-cache-${{ env.docker-image }}
93-
# platforms: ${{ matrix.platform }}
94-
95-
- name: Image digest
96-
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)