|
8 | 8 | paths:
|
9 | 9 | - 'docker/**'
|
10 | 10 | - '.github/workflows/release-ci-docker.yml'
|
| 11 | + - 'requirements.txt' |
11 | 12 | pull_request:
|
12 | 13 | branches:
|
13 | 14 | - main
|
14 | 15 | paths:
|
15 | 16 | - 'docker/**'
|
16 | 17 | - '.github/workflows/release-ci-docker.yml'
|
17 |
| - |
| 18 | + - 'requirements.txt' |
18 | 19 | jobs:
|
19 | 20 | generate-tag:
|
20 | 21 | runs-on: ubuntu-latest
|
@@ -104,3 +105,42 @@ jobs:
|
104 | 105 | -t flashinfer/flashinfer-ci-${{ matrix.cuda }}:latest \
|
105 | 106 | flashinfer/flashinfer-ci-${{ matrix.cuda }}:amd64-${DATE_SHA} \
|
106 | 107 | flashinfer/flashinfer-ci-${{ matrix.cuda }}:arm64-${DATE_SHA}
|
| 108 | +
|
| 109 | + update-docker-tags: |
| 110 | + if: github.event_name == 'push' && github.ref == 'refs/heads/main' |
| 111 | + runs-on: ubuntu-latest |
| 112 | + needs: [generate-tag, create-manifests] |
| 113 | + steps: |
| 114 | + - uses: actions/checkout@v4 |
| 115 | + |
| 116 | + - name: Update docker-tags.yml |
| 117 | + env: |
| 118 | + DATE_SHA: ${{ needs.generate-tag.outputs.date_sha }} |
| 119 | + run: | |
| 120 | + cat > ci/docker-tags.yml << EOF |
| 121 | + flashinfer/flashinfer-ci-cu126: ${DATE_SHA} |
| 122 | + flashinfer/flashinfer-ci-cu128: ${DATE_SHA} |
| 123 | + flashinfer/flashinfer-ci-cu129: ${DATE_SHA} |
| 124 | + flashinfer/flashinfer-ci-cu130: ${DATE_SHA} |
| 125 | + EOF |
| 126 | +
|
| 127 | + - name: Create Pull Request |
| 128 | + uses: peter-evans/create-pull-request@v6 |
| 129 | + with: |
| 130 | + commit-message: "Update Docker tags to ${{ needs.generate-tag.outputs.date_sha }}" |
| 131 | + title: "Update Docker CI tags to ${{ needs.generate-tag.outputs.date_sha }}" |
| 132 | + body: | |
| 133 | + This PR updates the Docker CI image tags to the latest version: `${{ needs.generate-tag.outputs.date_sha }}` |
| 134 | +
|
| 135 | + Updated images: |
| 136 | + - flashinfer/flashinfer-ci-cu126:${{ needs.generate-tag.outputs.date_sha }} |
| 137 | + - flashinfer/flashinfer-ci-cu128:${{ needs.generate-tag.outputs.date_sha }} |
| 138 | + - flashinfer/flashinfer-ci-cu129:${{ needs.generate-tag.outputs.date_sha }} |
| 139 | + - flashinfer/flashinfer-ci-cu130:${{ needs.generate-tag.outputs.date_sha }} |
| 140 | +
|
| 141 | + Auto-generated by [release-ci-docker workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
| 142 | + branch: update-docker-tags-${{ needs.generate-tag.outputs.date_sha }} |
| 143 | + delete-branch: true |
| 144 | + labels: | |
| 145 | + docker |
| 146 | + automated |
0 commit comments