Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
aperrin66 committed Dec 11, 2023
1 parent c34e64e commit ae091cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 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 || false }}
strategy:
matrix:
python_version:
Expand All @@ -22,6 +22,9 @@ jobs:
- '3.10'
- '3.11'
steps:
- name: debug
run: echo '${{ env.latest }}';echo ${{ env.latest && 'yes' || 'no' }}

- name: 'Checkout repository'
uses: actions/checkout@v4

Expand Down Expand Up @@ -52,8 +55,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 ae091cc

Please sign in to comment.