Skip to content

Commit c0475be

Browse files
committed
properly tag amd64 image
1 parent 27ef297 commit c0475be

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy-manylinux-docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,19 @@ jobs:
4848
if [[ "${{ matrix.arch }}" == "amd64" ]]; then
4949
echo "dockerfile=dockerfiles/pyopenms/manylinux/Dockerfile" >> $GITHUB_ENV
5050
echo "platform_tag=amd64" >> $GITHUB_ENV
51+
echo "docker_platform=linux/amd64" >> $GITHUB_ENV
5152
else
5253
echo "dockerfile=dockerfiles/pyopenms/manylinux/ARM64_Dockerfile" >> $GITHUB_ENV
5354
echo "platform_tag=arm64" >> $GITHUB_ENV
55+
echo "docker_platform=linux/arm64" >> $GITHUB_ENV
5456
fi
5557
- name: Build and Push Docker Image (${{ matrix.arch }})
5658
uses: docker/build-push-action@v3
5759
with:
5860
push: true
5961
file: ${{ env.dockerfile }}
60-
context: .
62+
context: .
63+
platforms: ${{ env.docker_platform }}
6164
build-args: |
6265
OPENMS_BRANCH=${{ steps.extract_branch.outputs.branch }}
6366
OPENMS_VERSION=${{ steps.tag_name.outputs.tag }}

0 commit comments

Comments
 (0)