mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
ci(build): skip pull requests from branches that release
This commit is contained in:
@@ -18,6 +18,7 @@ defaults:
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
if: ${{ github.event.pull_request.head.repo.full_name != github.repository || !(github.head_ref == 'main' || github.head_ref == 'next' || startsWith(github.head_ref, 'release/') || endsWith(github.head_ref, '.x')) }}
|
||||
permissions:
|
||||
contents: read
|
||||
uses: $/.github/workflows/build.yaml
|
||||
|
||||
@@ -151,6 +151,7 @@ Print what the next run builds with `scripts/version.sh --main`.
|
||||
Every push to a pull request from a branch of this repository publishes `ghcr.io/coollabsio/coolify:pr-<number>`, versioned `<version of the base branch>-pr.<number>`. Pull request 1234 into `next` is `pr-1234` with the version `4.6.0-beta.1-pr.1234`, which sorts after `4.6.0-beta.1` and its nightlies and before `4.6.0-beta.2`.
|
||||
|
||||
- Pull requests from forks and Dependabot are built, not published
|
||||
- Pull requests from `main`, `next`, a release branch or a patch branch are not built, the release, nightly and main workflows build their commits
|
||||
- Pull request builds are published to ghcr.io only, as the Docker Hub credentials are in the `release` environment, which no pull request run can use
|
||||
- Pull request builds create no git tag and no GitHub release
|
||||
|
||||
|
||||
Reference in New Issue
Block a user