@@ -40,12 +40,11 @@ jobs:
40
40
username : ${{ secrets.DOCKER_USER }}
41
41
password : ${{ secrets.DOCKER_PASS }}
42
42
43
- - name : Build standard docker image
43
+ - name : Build docker image
44
44
uses : docker/build-push-action@v5
45
45
with :
46
46
context : .
47
47
file : Dockerfile
48
- target : ' standard'
49
48
build-args : ' PYTHON_VERSION=${{ matrix.version.python }}'
50
49
push : ${{ github.ref_type == 'tag' }}
51
50
tags : |
57
56
${{ env.IMAGE_NAME }}:latest-python${{ matrix.version.python }}
58
57
cache-to : type=local,dest=/tmp/.buildx-cache-new
59
58
60
- - name : Build slim docker image
61
- uses : docker/build-push-action@v5
62
- with :
63
- context : .
64
- file : Dockerfile
65
- target : ' slim'
66
- build-args : ' PYTHON_VERSION=${{ matrix.version.python }}'
67
- push : ${{ github.ref_type == 'tag' }}
68
- tags : |
69
- ${{ env.IMAGE_NAME }}:latest-slim-python${{ matrix.version.python }}
70
- ${{ matrix.version.latest && format('{0}:{1}{2}', env.IMAGE_NAME, github.ref_name, matrix.tag_suffix) || '' }}
71
- ${{ env.IMAGE_NAME }}:${{ github.ref_name }}-slim-python${{ matrix.version.python }}
72
- ${{ matrix.version.latest && format('{0}:latest-slim', env.IMAGE_NAME) || '' }}
73
- cache-from : |
74
- type=local,src=/tmp/.buildx-cache
75
- type=local,src=/tmp/.buildx-cache-new
76
- ${{ env.IMAGE_NAME }}:latest-python${{ matrix.version.python }}
77
- ${{ env.IMAGE_NAME }}:${{ github.ref_name }}-slim-python${{ matrix.version.python }}
78
- cache-to : type=local,dest=/tmp/.buildx-cache-new
79
-
80
59
# Temp fix
81
60
# https://github.com/docker/build-push-action/issues/252
82
61
# https://github.com/moby/buildkit/issues/1896
0 commit comments