Skip to content

Commit e2bf86c

Browse files
committed
No more github action cache for docker builds
1 parent 7a06b33 commit e2bf86c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ jobs:
106106
run: |
107107
echo "base_image=$(cat ${{ steps.prepare_tags.outputs.dockerfile_path }} | head -n 1 | awk -F '=' '{print $2}' )" >> $GITHUB_OUTPUT
108108
109+
- name: Login to Docker Hub
110+
uses: docker/login-action@v3
111+
with:
112+
registry: ghcr.io
113+
username: ${{ secrets.DOCKER_MACHINE_USER }}
114+
password: ${{ secrets.DOCKER_MACHINE_TOKEN }}
115+
109116
- name: Cache Docker images
110117
uses: ScribeMD/docker-cache@0.5.0
111118
with:
@@ -119,8 +126,6 @@ jobs:
119126
platforms: ${{ matrix.platform }}
120127
push: false
121128
load: true
122-
cache-from: type=gha
123-
cache-to: type=gha,mode=max
124129
tags: ${{ steps.prepare_tags.outputs.tags }}
125130
build-args: |
126131
BUILD_CONTEXT=${{ steps.prepare_tags.outputs.context_dir }}

.github/workflows/release-integrations.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ jobs:
115115
file: ${{ steps.prepare_tags.outputs.dockerfile_path }}
116116
platforms: linux/amd64,linux/arm64
117117
push: true
118-
cache-from: type=gha
119-
cache-to: type=gha,mode=max
120118
tags: ${{ steps.prepare_tags.outputs.tags }}
121119
build-args: |
122120
BUILD_CONTEXT=${{ steps.prepare_tags.outputs.context_dir }}

0 commit comments

Comments
 (0)