Skip to content

Commit

Permalink
💚 尝试修复 CI docker push 失败
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyomotoi committed Dec 13, 2023
1 parent 694fcb9 commit 40ea47f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
- name: 🔍 Get Latest Commit and Generate Build Arg
id: commit
run: |
if [[ ${{ needs.check-version.outputs.CHECK_PASS }} ]]; then
if [[ "${{ needs.check-version.outputs.CHECK_PASS }}" == "true" ]]; then
echo "COMMIT=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
else
echo "COMMIT=${GITHUB_SHA::7}-dev" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -165,14 +165,13 @@ jobs:
- name: ✨ Generate Image Name
id: image
run: |
echo "IMAGE=${GITHUB_REPOSITORY@L}" >> $GITHUB_OUTPUT
echo "IMAGE=${{ github.repository }}" >> $GITHUB_OUTPUT
- name: ✨ Generate Tags
uses: docker/metadata-action@v5
id: metadata
with:
images: |
${{ github.repository }}
images: ${{ steps.image.outputs.IMAGE }}
flavor: |
suffix=-py${{ matrix.python_version }}${{ matrix.python_variant }},onlatest=${{ needs.check-version.outputs.CHECK_PASS }}
tags: |
Expand Down

0 comments on commit 40ea47f

Please sign in to comment.