File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 uses : pypa/gh-action-pypi-publish@release/v1
3232 with :
3333 password : ${{ secrets.PYPI_ORG_TOKEN }}
34+
35+ build-and-push :
36+ # This job publishes the server docker image to DockerHub
37+ runs-on : ubuntu-latest
38+ defaults :
39+ run :
40+ working-directory : ./server
41+ steps :
42+ - name : Checkout Repository
43+ uses : actions/checkout@v4
44+
45+ - name : Extract Docker image metadata
46+ id : meta
47+ uses : docker/metadata-action@v5
48+ with :
49+ images : ${{ vars.DOCKERHUB_USERNAME }}/basyx-python-server
50+ tags : |
51+ type=semver,pattern={{version}}
52+ type=raw,value=latest
53+ labels : |
54+ org.opencontainers.image.title=BaSyx Python Server
55+ org.opencontainers.image.description=Eclipse BaSyx Python SDK - HTTP Server
56+ org.opencontainers.image.source=https://github.com/eclipse-basyx/basyx-python-sdk/tree/main/server
57+ org.opencontainers.image.licenses=MIT
58+
59+ - name : Log in to DockerHub
60+ uses : docker/login-action@v3
61+ with :
62+ username : ${{ vars.DOCKERHUB_USERNAME }}
63+ password : ${{ secrets.DOCKERHUB_TOKEN }}
64+
65+ - name : Build and Push Docker Image
66+ uses : docker/build-push-action@v6
67+ with :
68+ context : ..
69+ file : ./Dockerfile
70+ push : true
71+ tags : ${{ steps.meta.outputs.tags }}
72+ labels : ${{ steps.meta.outputs.labels }}
73+
74+
You can’t perform that action at this time.
0 commit comments