|
73 | 73 | mkdir -p bin
|
74 | 74 | mv dist/envd_darwin_all/envd bin/envd
|
75 | 75 | chmod +x bin/envd
|
| 76 | + - name: setup Python |
| 77 | + uses: actions/setup-python@v5 |
| 78 | + with: |
| 79 | + python-version: '3.11' |
76 | 80 | - name: Build wheels
|
77 | 81 |
|
78 | 82 | env:
|
|
82 | 86 | - name: Build source distribution
|
83 | 87 | if: runner.os == 'Linux' # Only release source under linux to avoid conflict
|
84 | 88 | run: |
|
85 |
| - python3 -m pip install wheel |
86 |
| - python3 setup.py sdist |
| 89 | + python -m pip install wheel |
| 90 | + python setup.py sdist |
87 | 91 | mv dist/*.tar.gz wheelhouse/
|
88 | 92 | - name: Upload to PyPI
|
89 | 93 | env:
|
@@ -119,6 +123,30 @@ jobs:
|
119 | 123 | - name: Docker Buildx
|
120 | 124 | run: |
|
121 | 125 | ./base-images/build.sh
|
| 126 | + envd_starship_publish: |
| 127 | + name: Push starship image to Docker Hub |
| 128 | + runs-on: ubuntu-latest |
| 129 | + needs: goreleaser |
| 130 | + steps: |
| 131 | + - uses: actions/checkout@v4 |
| 132 | + - name: Docker Login |
| 133 | + uses: docker/login-action@v3 |
| 134 | + with: |
| 135 | + username: ${{ secrets.DOCKERIO_USERNAME }} |
| 136 | + password: ${{ secrets.DOCKERIO_TOKEN }} |
| 137 | + - name: Docker Setup QEMU |
| 138 | + uses: docker/setup-qemu-action@v3 |
| 139 | + - name: Set up Docker Buildx |
| 140 | + uses: docker/setup-buildx-action@v3 |
| 141 | + - name: Build and push |
| 142 | + uses: docker/build-push-action@v5 |
| 143 | + with: |
| 144 | + push: true |
| 145 | + file: base-images/envd-starship/envd-starship.Dockerfile |
| 146 | + platforms: linux/amd64,linux/arm64 |
| 147 | + tags: tensorchord/starship:v0.0.1 |
| 148 | + cache-from: type=gha |
| 149 | + cache-to: type=gha,mode=max |
122 | 150 | envd_image_push:
|
123 | 151 | name: Build & push envd images
|
124 | 152 | # only trigger on main repo when tag starts with v
|
|
0 commit comments