Skip to content

Commit

Permalink
🐛 fix image build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Dec 12, 2023
1 parent 455a0fe commit 683e2bd
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
id: image
run: |
echo "IMAGE=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT
echo "SCOPE=${{ env.GITHUB_REF_NAME }}-${{ matrix.python_version }}${{ matrix.python_variant }}-${{ matrix.platform }}" >> $GITHUB_OUTPUT
echo "SCOPE=${{ hashFiles('**/poetry.lock') }}-${{ matrix.python_version }}${{ matrix.python_variant }}-${{ matrix.platform }}" >> $GITHUB_OUTPUT
- name: Generate Labels
uses: docker/metadata-action@v5
Expand Down Expand Up @@ -146,13 +146,6 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Generate Image Name
id: image
run: |
Expand All @@ -164,7 +157,6 @@ jobs:
with:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
flavor: |
suffix=-py${{ matrix.python_version }}${{ matrix.python_variant }},onlatest=true
tags: |
Expand All @@ -187,7 +179,6 @@ jobs:
with:
images: |
${{ github.repository }}
ghcr.io/${{ github.repository }}
flavor: |
suffix=${{ matrix.python_variant }},onlatest=true
tags: |
Expand Down

0 comments on commit 683e2bd

Please sign in to comment.