|
4 | 4 | branches: |
5 | 5 | - "main" |
6 | 6 | - "release/v*" |
| 7 | + - "v1.5.4-dns-all" |
7 | 8 | paths-ignore: |
8 | 9 | - "**/*.png" |
9 | 10 | pull_request: |
10 | 11 | branches: |
11 | 12 | - "main" |
12 | 13 | - "release/v*" |
| 14 | + - "v1.5.4-dns-all" |
13 | 15 | paths-ignore: |
14 | 16 | - "**/*.png" |
15 | 17 |
|
16 | 18 | permissions: |
17 | 19 | contents: read |
| 20 | + packages: write |
18 | 21 |
|
19 | 22 | jobs: |
20 | 23 | lint: |
|
55 | 58 | - name: Run Coverage Tests |
56 | 59 | run: make go.test.coverage |
57 | 60 | - name: Upload coverage to Codecov |
| 61 | + if: github.ref != 'refs/heads/v1.5.4-dns-all' |
58 | 62 | uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3 |
59 | 63 | with: |
60 | 64 | fail_ci_if_error: true |
@@ -249,21 +253,34 @@ jobs: |
249 | 253 |
|
250 | 254 | # build and push image |
251 | 255 | - name: Login to DockerHub |
252 | | - if: github.event_name == 'push' |
| 256 | + if: github.event_name == 'push' && github.ref != 'refs/heads/v1.5.4-dns-all' |
253 | 257 | uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 |
254 | 258 | with: |
255 | 259 | username: ${{ vars.DOCKERHUB_USERNAME }} |
256 | 260 | password: ${{ secrets.DOCKERHUB_PASSWORD }} |
257 | 261 |
|
| 262 | + - name: Login to GHCR |
| 263 | + if: github.event_name == 'push' && github.ref == 'refs/heads/v1.5.4-dns-all' |
| 264 | + uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 |
| 265 | + with: |
| 266 | + registry: ghcr.io |
| 267 | + username: ${{ github.actor }} |
| 268 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 269 | + |
258 | 270 | - name: Setup Multiarch Environment |
259 | 271 | if: github.event_name == 'push' |
260 | 272 | run: make image.multiarch.setup |
261 | 273 |
|
262 | | - - name: Build and Push EG Commit Image |
263 | | - if: github.event_name == 'push' |
| 274 | + - name: Build and Push EG Commit Image (DockerHub) |
| 275 | + if: github.event_name == 'push' && github.ref != 'refs/heads/v1.5.4-dns-all' |
264 | 276 | # tag is set to the short SHA of the commit |
265 | 277 | run: make image.push.multiarch PLATFORMS="linux_amd64 linux_arm64" IMAGE=envoyproxy/gateway-dev |
266 | 278 |
|
| 279 | + - name: Build and Push EG Commit Image (GHCR) |
| 280 | + if: github.event_name == 'push' && github.ref == 'refs/heads/v1.5.4-dns-all' |
| 281 | + # tag is set to v1.5.4-ipv6 for this branch |
| 282 | + run: make image.push.multiarch PLATFORMS="linux_amd64 linux_arm64" IMAGE=ghcr.io/tosuke-lab/envoy-gateway TAG=v1.5.4-ipv6 |
| 283 | + |
267 | 284 | - name: Build and Push EG Latest Image |
268 | 285 | if: github.event_name == 'push' && github.ref == 'refs/heads/main' |
269 | 286 | # tag is set to `latest` when pushing to main branch |
|
0 commit comments