Skip to content

Commit

Permalink
Merge pull request #3663 from crazy-max/v0.11_backport_ci-release-bra…
Browse files Browse the repository at this point in the history
…nches

[0.11 backport] ci: trigger workflows on push to release branches
  • Loading branch information
crazy-max authored Feb 23, 2023
2 parents 4ddee42 + 9ec2faa commit 9665de4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ on:
push:
branches:
- 'master'
- 'v[0-9]+.[0-9]+'
tags:
- 'v*'
- 'dockerfile/*'
pull_request:
branches:
- 'master'
- 'v*'
paths-ignore:
- 'README.md'
- 'docs/**'
Expand Down Expand Up @@ -347,7 +345,9 @@ jobs:
PUSH=push
elif [[ $GITHUB_REF == refs/heads/* ]]; then
TAG=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
PUSH=push
if [ $GITHUB_REF = "refs/heads/${{ github.event.repository.default_branch }}" ]; then
PUSH=push
fi
fi
echo "tag=${TAG}" >>${GITHUB_OUTPUT}
echo "push=${PUSH}" >>${GITHUB_OUTPUT}
Expand Down Expand Up @@ -460,7 +460,7 @@ jobs:
TYP=tag
TAG=${GITHUB_REF#refs/tags/}
PUSH=push
elif [[ $GITHUB_REF == refs/heads/* ]]; then
elif [ $GITHUB_REF = "refs/heads/${{ github.event.repository.default_branch }}" ]; then
PUSH=push
fi
echo "typ=${TYP}" >>${GITHUB_OUTPUT}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ on:
push:
branches:
- 'master'
- 'v[0-9]+.[0-9]+'
tags:
- 'v*'
- 'dockerfile/*'
pull_request:
branches:
- 'master'
- 'v*'

env:
REPO_SLUG_ORIGIN: "moby/buildkit:latest"
Expand Down

0 comments on commit 9665de4

Please sign in to comment.