-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add support for additional deployment channels (#5098)
* chore: add new differentiation of deployments * chore: for testing disable branch filters * chore: update noop job * chore: disable uploading artifacts for testing * revert: disable uploading artifacts for testing This reverts commit 872de216e028f599741f2e478afa1fcb410782ef. * chore: temporary move deployment jobs * chore: fix message * chore: test main * chore: update message * revert: temporary changes * chore: use smaller resource for no-op
- Loading branch information
1 parent
af382ea
commit 5e1b1b7
Showing
5 changed files
with
106 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# enable support for stable, preview and other release channels | ||
ENABLE_STABLE_CHANNELS=false | ||
echo $ENABLE_STABLE_CHANNELS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
# Based on the given release channel as an argument, this script checks if the current | ||
# branch is used for this channel. | ||
|
||
TEST_CHANNEL=$1 | ||
ENABLE_STABLE_CHANNELS=$($(dirname "$0")/enable-stable-release-channels.sh) | ||
|
||
# legacy release channel mapping (preview=stable) | ||
if [ "$TEST_CHANNEL" == "preview" ] && [ "$ENABLE_STABLE_CHANNELS" == false ]; then | ||
TEST_CHANNEL=stable | ||
fi | ||
|
||
RELEASE_CHANNEL="$($(dirname "$0")/determine-release-channel.sh)" | ||
if [ "$RELEASE_CHANNEL" == $TEST_CHANNEL ]; then | ||
echo false | ||
exit 0 | ||
fi | ||
|
||
echo true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters