Buckets:
| name: Docker Image CI | |
| on: | |
| push: | |
| tags: | |
| - '**' | |
| jobs: | |
| push_to_docker_hub: | |
| name: Publish Docker image to Docker Hub | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v3 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@v4.0.1 | |
| with: | |
| images: cadquery/cadquery-server | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v3.1.1 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| push_to_pypi: | |
| name: Publish Python package to PyPI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v3 | |
| - name: Get Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Get Poetry | |
| uses: abatilo/actions-poetry@v2 | |
| with: | |
| poetry-version: '1.2' | |
| - name: Build Python package | |
| run: poetry build | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
Xet Storage Details
- Size:
- 1.44 kB
- Xet hash:
- 8216875015006b045f960b7f2488c0ce2e8b5fe8d0fff28d7ef20d71c62a0fce
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.