Skip to content

Commit 2ba03df

Browse files
authored
Rebuild docker images on release builds (#1451)
* Rebuild docker images on release * Include with-push
1 parent 3fc310a commit 2ba03df

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/build-conda-images.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches:
66
main
7+
release/*
8+
tags:
9+
# NOTE: Binary build pipelines should only get triggered on release candidate or nightly builds
10+
# Release candidate tags look like: v1.11.0-rc1
11+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
712
paths:
813
- conda/Dockerfile
914
- 'common/*'
@@ -19,7 +24,7 @@ env:
1924
DOCKER_BUILDKIT: 1
2025
DOCKER_ID: ${{ secrets.DOCKER_ID }}
2126
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
22-
WITH_PUSH: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
27+
WITH_PUSH: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release')) }}
2328

2429
jobs:
2530
build-docker:

.github/workflows/build-libtorch-images.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches:
66
main
7+
release/*
8+
tags:
9+
# NOTE: Binary build pipelines should only get triggered on release candidate or nightly builds
10+
# Release candidate tags look like: v1.11.0-rc1
11+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
712
paths:
813
- .github/workflows/build-libtorch-images.yml
914
- libtorch/Dockerfile
@@ -21,7 +26,7 @@ env:
2126
DOCKER_BUILDKIT: 1
2227
DOCKER_ID: ${{ secrets.DOCKER_ID }}
2328
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
24-
WITH_PUSH: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
29+
WITH_PUSH: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release')) }}
2530

2631
jobs:
2732
build-docker-cuda:

.github/workflows/build-manywheel-images.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches:
66
main
7+
release/*
8+
tags:
9+
# NOTE: Binary build pipelines should only get triggered on release candidate or nightly builds
10+
# Release candidate tags look like: v1.11.0-rc1
11+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
712
paths:
813
- .github/workflows/build-manywheel-images.yml
914
- manywheel/Dockerfile
@@ -23,7 +28,7 @@ env:
2328
DOCKER_BUILDKIT: 1
2429
DOCKER_ID: ${{ secrets.DOCKER_ID }}
2530
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
26-
WITH_PUSH: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
31+
WITH_PUSH: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release')) }}
2732

2833
jobs:
2934
build-docker-cuda:

0 commit comments

Comments
 (0)