Skip to content

Commit

Permalink
SCALRCORE-26072: Trigger go-scalr tests in fatmouse PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
AKramarenko committed May 9, 2023
1 parent 9a3f7df commit 5ca2e2a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
required: true
pr_branch:
description: Pull request branch
base_branch:
description: Base branch of pull request
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
Expand Down Expand Up @@ -105,10 +107,17 @@ jobs:
FATMOUSE_BRANCH="--fatmouse-branch ${{ inputs.pr_branch }}"
SCALR_BRANCH="--scalr-branch ${{ inputs.pr_branch }}"
if [ "${{ inputs.pr_branch }}" = "staging" ]; then
IMAGE="--scalr-server-image-tag staging"
TEV2_BRANCH=${{ inputs.pr_branch }}
NORMALIZED_BRANCH=$(echo $TEV2_BRANCH | tr / - | tr '[:upper:]' '[:lower:]')
if docker manifest inspect eu.gcr.io/development-156220/fatmouse/scalr-server-te:${NORMALIZED_BRANCH} ; then
IMAGE="--scalr-server-image-tag ${NORMALIZED_BRANCH}"
else
IMAGE=""
if [[ "${{ inputs.base_branch }}" == release/* ]]; then
NORMALIZED_IMAGE=$(echo "${{ inputs.base_branch }}" | tr / - | tr '[:upper:]' '[:lower:]')
IMAGE="--scalr-server-image-tag ${NORMALIZED_IMAGE}"
else
IMAGE=""
fi
fi
docker run --rm \
Expand Down

0 comments on commit 5ca2e2a

Please sign in to comment.