Skip to content

Commit a3a523f

Browse files
committed
fixup
1 parent ccc85a7 commit a3a523f

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

.github/workflows/build-and-push.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,12 @@ jobs:
3737
- name: Set up QEMU
3838
uses: docker/setup-qemu-action@v1
3939
- name: Build
40-
uses: docker/build-push-action@v6
41-
with:
42-
context: .
43-
platforms: linux/${{ matrix.arch }}
44-
provenance: false
45-
sbom: false
46-
outputs: type=docker,oci-mediatypes=false
47-
tags: |
48-
fedorapython/fedora-python-tox:${{ matrix.arch }}
49-
fedorapython/fedora-python-tox:${{ matrix.arch }}-f${{ env.FEDORA_VERSION }}
40+
run: |
41+
docker build \
42+
--platform linux/${{ matrix.arch }} \
43+
-t fedorapython/fedora-python-tox:${{ matrix.arch }} \
44+
-t fedorapython/fedora-python-tox:${{ matrix.arch }}-f${{ env.FEDORA_VERSION }} \
45+
.
5046
- name: Verify single-platform image
5147
run: |
5248
# Inspect the manifest
@@ -95,17 +91,10 @@ jobs:
9591
username: ${{ secrets.DOCKERHUB_USERNAME }}
9692
password: ${{ secrets.DOCKERHUB_TOKEN }}
9793
- name: Push to Dockerhub
98-
uses: docker/build-push-action@v6
9994
if: github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
100-
with:
101-
context: .
102-
platforms: linux/${{ matrix.arch }}
103-
provenance: false
104-
sbom: false
105-
push: true
106-
tags: |
107-
fedorapython/fedora-python-tox:${{ matrix.arch }}
108-
fedorapython/fedora-python-tox:${{ matrix.arch }}-f${{ env.FEDORA_VERSION }}
95+
run: |
96+
docker push fedorapython/fedora-python-tox:${{ matrix.arch }}
97+
docker push fedorapython/fedora-python-tox:${{ matrix.arch }}-f${{ env.FEDORA_VERSION }}
10998
11099
description_update:
111100
name: 'Update Dockerhub description'

0 commit comments

Comments
 (0)