Skip to content

Commit 1155249

Browse files
[release-1.9] Add release branch to the image push trigger (#2377)
Signed-off-by: Andrey Velichkevich <[email protected]> Co-authored-by: Andrey Velichkevich <[email protected]>
1 parent f9ca4db commit 1155249

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-and-publish-images.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ jobs:
3939
uses: ./.github/workflows/free-up-disk-space
4040

4141
- name: Docker Login
42-
# Trigger workflow only for kubeflow/training-operator repository with specific branch (master, v.*-branch) or tag (v.*).
42+
# Trigger workflow only for kubeflow/training-operator repository with specific branch (master, v.*-branch, release-*) or tag (v.*).
4343
if: >-
4444
github.repository == 'kubeflow/training-operator' &&
45-
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/v') && endsWith(github.ref, '-branch')) || startsWith(github.ref, 'refs/tags/v'))
45+
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/v') && endsWith(github.ref, '-branch')) || startsWith(github.ref, 'refs/heads/release-') || startsWith(github.ref, 'refs/tags/v'))
4646
uses: docker/login-action@v3
4747
with:
4848
username: ${{ secrets.DOCKERHUB_USERNAME }}
4949
password: ${{ secrets.DOCKERHUB_TOKEN }}
5050

5151
- name: Publish Component ${{ inputs.component-name }}
52-
# Trigger workflow only for kubeflow/training-operator repository with specific branch (master, v.*-branch) or tag (v.*).
52+
# Trigger workflow only for kubeflow/training-operator repository with specific branch (master, v.*-branch, release-*) or tag (v.*).
5353
if: >-
5454
github.repository == 'kubeflow/training-operator' &&
55-
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/v') && endsWith(github.ref, '-branch')) || startsWith(github.ref, 'refs/tags/v'))
55+
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/v') && endsWith(github.ref, '-branch')) || startsWith(github.ref, 'refs/heads/release-') || startsWith(github.ref, 'refs/tags/v'))
5656
id: publish
5757
uses: ./.github/workflows/template-publish-image
5858
with:

0 commit comments

Comments
 (0)