Skip to content

Commit 0b1f558

Browse files
committed
feat: add legacy alias for python3
1 parent b8b938f commit 0b1f558

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/python.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ jobs:
7171

7272
- run: docker buildx prune -af
7373

74-
- uses: docker/build-push-action@v6
74+
- if: ${{ matrix.python != '3' }}
75+
uses: docker/build-push-action@v6
7576
with:
7677
context: .
7778
file: ./python/${{ matrix.python }}/Dockerfile
@@ -84,6 +85,22 @@ jobs:
8485
provenance: mode=max
8586
sbom: true
8687

88+
- if: ${{ matrix.python == '3' }}
89+
uses: docker/build-push-action@v6
90+
with:
91+
context: .
92+
file: ./python/${{ matrix.python }}/Dockerfile
93+
platforms: linux/amd64,linux/arm64/v8
94+
push: true
95+
pull: true
96+
tags: |
97+
cubecoders/ampbase:python-${{ matrix.python }}
98+
cubecoders/ampbase:python3
99+
cache-from: type=gha,scope=${{ github.workflow }}-${{ matrix.python }}
100+
cache-to: type=gha,mode=max,scope=${{ github.workflow }}-${{ matrix.python }}
101+
provenance: mode=max
102+
sbom: true
103+
87104
concurrency:
88105
group: ${{ github.workflow }}-${{ github.ref }}
89106
cancel-in-progress: false

0 commit comments

Comments
 (0)