|
5 | 5 | push:
|
6 | 6 | branches:
|
7 | 7 | - 'main'
|
| 8 | + - 'dev' |
8 | 9 | release:
|
9 | 10 | types: [published]
|
10 | 11 |
|
|
55 | 56 | images: ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}
|
56 | 57 |
|
57 | 58 | # Build and push the Docker image to GHCR for the main branch or specific tags
|
58 |
| - - name: Build and Push Docker Image |
| 59 | + - name: Build and Push Docker Image (main, latest) |
59 | 60 | if: github.ref == 'refs/heads/main'
|
60 | 61 | uses: docker/build-push-action@v4
|
61 | 62 | with:
|
|
66 | 67 | labels: version=${{ github.run_id }}
|
67 | 68 | platforms: linux/amd64,linux/arm64
|
68 | 69 |
|
| 70 | + # Build and push the Docker image to GHCR for the main branch or specific tags |
| 71 | + - name: Build and Push Docker Image (dev) |
| 72 | + if: github.ref == 'refs/heads/dev' |
| 73 | + uses: docker/build-push-action@v4 |
| 74 | + with: |
| 75 | + context: . |
| 76 | + file: Dockerfile |
| 77 | + push: true |
| 78 | + tags: ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:dev |
| 79 | + labels: version=${{ github.run_id }} |
| 80 | + platforms: linux/amd64,linux/arm64 |
| 81 | + |
69 | 82 | # For tagged releases, build and push the Docker image with the corresponding tag
|
70 | 83 | - name: Build and Push Docker Image (Tagged)
|
71 | 84 | if: startsWith(github.ref, 'refs/tags/')
|
@@ -135,6 +148,18 @@ jobs:
|
135 | 148 | labels: version=${{ github.run_id }}
|
136 | 149 | platforms: linux/amd64,linux/arm64
|
137 | 150 |
|
| 151 | + # Build and push the Docker image to GHCR for the main branch or specific tags |
| 152 | + - name: Build and Push Docker Image (dev) |
| 153 | + if: github.ref == 'refs/heads/dev' |
| 154 | + uses: docker/build-push-action@v4 |
| 155 | + with: |
| 156 | + context: . |
| 157 | + file: Dockerfile.min |
| 158 | + push: true |
| 159 | + tags: ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:dev |
| 160 | + labels: version=${{ github.run_id }} |
| 161 | + platforms: linux/amd64,linux/arm64 |
| 162 | + |
138 | 163 | # For tagged releases, build and push the Docker image with the corresponding tag
|
139 | 164 | - name: Build and Push Docker Image (Tagged)
|
140 | 165 | if: startsWith(github.ref, 'refs/tags/')
|
@@ -207,6 +232,20 @@ jobs:
|
207 | 232 | build-args: |
|
208 | 233 | USE_ROCM=1
|
209 | 234 |
|
| 235 | + # Build and push the Docker image to GHCR for the main branch or specific tags |
| 236 | + - name: Build and Push Docker Image (dev) |
| 237 | + if: github.ref == 'refs/heads/dev' |
| 238 | + uses: docker/build-push-action@v4 |
| 239 | + with: |
| 240 | + context: . |
| 241 | + file: Dockerfile |
| 242 | + push: true |
| 243 | + tags: ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}:dev |
| 244 | + labels: version=${{ github.run_id }} |
| 245 | + platforms: linux/amd64,linux/arm64 |
| 246 | + build-args: | |
| 247 | + USE_ROCM=1 |
| 248 | +
|
210 | 249 | # For tagged releases, build and push the Docker image with the corresponding tag
|
211 | 250 | - name: Build and Push Docker Image (Tagged)
|
212 | 251 | if: startsWith(github.ref, 'refs/tags/')
|
|
0 commit comments