Skip to content

Commit

Permalink
build: test for latest only once
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Dec 11, 2023
1 parent c34e64e commit f71e53a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build_docker_images:
runs-on: 'ubuntu-20.04'
env:
latest_python: '3.11'
latest: ${{ matrix.python_version == '3.11' && 'true' || '' }}
strategy:
matrix:
python_version:
Expand Down Expand Up @@ -52,8 +52,8 @@ jobs:
tags: |
${{ env.IMAGE_NAME }}:latest-python${{ matrix.python_version }}
${{ env.IMAGE_NAME }}:${{ github.ref_name }}-python${{ matrix.python_version }}
${{ (matrix.python_version == env.latest_python) && format('{0}:{1}', env.IMAGE_NAME, github.ref_name) || '' }}
${{ (matrix.python_version == env.latest_python) && format('{0}:latest', env.IMAGE_NAME) || '' }}
${{ env.latest && format('{0}:{1}', env.IMAGE_NAME, github.ref_name) || '' }}
${{ env.latest && format('{0}:latest', env.IMAGE_NAME) || '' }}
cache-from: |
type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
Expand Down

0 comments on commit f71e53a

Please sign in to comment.