Skip to content

Commit 683e2bd

Browse files
authored
🐛 fix image build cache
1 parent 455a0fe commit 683e2bd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
id: image
7979
run: |
8080
echo "IMAGE=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT
81-
echo "SCOPE=${{ env.GITHUB_REF_NAME }}-${{ matrix.python_version }}${{ matrix.python_variant }}-${{ matrix.platform }}" >> $GITHUB_OUTPUT
81+
echo "SCOPE=${{ hashFiles('**/poetry.lock') }}-${{ matrix.python_version }}${{ matrix.python_variant }}-${{ matrix.platform }}" >> $GITHUB_OUTPUT
8282
8383
- name: Generate Labels
8484
uses: docker/metadata-action@v5
@@ -146,13 +146,6 @@ jobs:
146146
username: ${{ secrets.DOCKERHUB_USERNAME }}
147147
password: ${{ secrets.DOCKERHUB_PASSWORD }}
148148

149-
- name: Login to Github Container Registry
150-
uses: docker/login-action@v3
151-
with:
152-
registry: ghcr.io
153-
username: ${{ github.repository_owner }}
154-
password: ${{ secrets.GITHUB_TOKEN }}
155-
156149
- name: Generate Image Name
157150
id: image
158151
run: |
@@ -164,7 +157,6 @@ jobs:
164157
with:
165158
images: |
166159
${{ github.repository }}
167-
ghcr.io/${{ github.repository }}
168160
flavor: |
169161
suffix=-py${{ matrix.python_version }}${{ matrix.python_variant }},onlatest=true
170162
tags: |
@@ -187,7 +179,6 @@ jobs:
187179
with:
188180
images: |
189181
${{ github.repository }}
190-
ghcr.io/${{ github.repository }}
191182
flavor: |
192183
suffix=${{ matrix.python_variant }},onlatest=true
193184
tags: |

0 commit comments

Comments
 (0)