mirror of
https://github.com/bitwarden/server.git
synced 2024-11-25 12:45:18 +01:00
Fix github.ref comparison in build.yml (#3177)
+ Convert to case statement + Extend comment
This commit is contained in:
parent
ceae31e7bf
commit
d5a0e97fea
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -357,14 +357,18 @@ jobs:
|
||||
github.ref == 'refs/heads/rc' ||
|
||||
github.ref == 'refs/heads/hotfix-rc'
|
||||
run: |
|
||||
# Set proper image based on branch
|
||||
if [[ "${{ github.ref }}" == "master" ]]; then
|
||||
SETUP_IMAGE="$_AZ_REGISTRY/setup:dev"
|
||||
elif [[ "${{ github.ref }}" == "rc" ]]; then
|
||||
SETUP_IMAGE="$_AZ_REGISTRY/setup:rc"
|
||||
elif [[ "${{ github.ref }}" == "hotfix-rc" ]]; then
|
||||
SETUP_IMAGE="$_AZ_REGISTRY/setup:hotfix-rc"
|
||||
fi
|
||||
# Set proper setup image based on branch
|
||||
case "${{ github.ref }}" in
|
||||
"refs/heads/master")
|
||||
SETUP_IMAGE="$_AZ_REGISTRY/setup:dev"
|
||||
;;
|
||||
"refs/heads/rc")
|
||||
SETUP_IMAGE="$_AZ_REGISTRY/setup:rc"
|
||||
;;
|
||||
"refs/heads/hotfix-rc")
|
||||
SETUP_IMAGE="$_AZ_REGISTRY/setup:hotfix-rc"
|
||||
;;
|
||||
esac
|
||||
|
||||
STUB_OUTPUT=$(pwd)/docker-stub
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user