55 types : [published]
66
77jobs :
8- publish :
8+ publish-pypi :
99 # This job publishes the package to PyPI
1010 runs-on : ubuntu-latest
1111 defaults :
3232 with :
3333 password : ${{ secrets.PYPI_ORG_TOKEN }}
3434
35- build-and-push :
35+ publish-dockerhub :
3636 # This job publishes the server docker image to DockerHub
3737 runs-on : ubuntu-latest
3838 defaults :
4646 id : meta
4747 uses : docker/metadata-action@v5
4848 with :
49- images : ${{ vars.DOCKERHUB_USERNAME }}/basyx-python-server
49+ images : eclipsebasyx/basyx-python-server
50+ # This fetches the latest git tag and adds an additional "latest" to it, so e.g. `2.1.0,latest`
5051 tags : |
5152 type=semver,pattern={{version}}
5253 type=raw,value=latest
@@ -56,19 +57,18 @@ jobs:
5657 org.opencontainers.image.source=https://github.com/eclipse-basyx/basyx-python-sdk/tree/main/server
5758 org.opencontainers.image.licenses=MIT
5859
59- - name : Log in to DockerHub
60- uses : docker/login-action@v3
60+ - name : Log in to Docker Hub
61+ uses : docker/login-action@v4
6162 with :
62- username : ${{ vars.DOCKERHUB_USERNAME }}
63- password : ${{ secrets.DOCKERHUB_TOKEN }}
63+ username : ${{ secrets.DOCKER_HUB_USER }}
64+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
6465
6566 - name : Build and Push Docker Image
6667 uses : docker/build-push-action@v6
6768 with :
6869 context : ..
69- file : ./Dockerfile
70+ file : ./Dockerfile # Todo: Update paths
7071 push : true
72+ platforms : linux/amd64,linux/arm64 # Todo: Check which platforms we should support
7173 tags : ${{ steps.meta.outputs.tags }}
7274 labels : ${{ steps.meta.outputs.labels }}
73-
74-
0 commit comments