Skip to content

Commit

Permalink
Better handle deployment tagging of other branches like playground.
Browse files Browse the repository at this point in the history
Signed-off-by: Hiram Chirino <[email protected]>
  • Loading branch information
chirino committed Nov 19, 2023
1 parent aa601d7 commit 88d5b0e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ concurrency: qa-${{ github.ref_name }}

on:
push:
branches: [main, add-sites-api]
branches: [main, playground]

jobs:
build-images:
Expand Down Expand Up @@ -128,8 +128,12 @@ jobs:
if: env.COMMIT_CHANGES == 1
shell: bash
run: |
git tag qa --force
git push origin qa --force
TAG="qa-${{github.ref_name}}"
if [ "${{github.ref_name}}" == "main" ]; then
TAG="qa"
fi
git tag "$TAG" --force
git push origin "$TAG" --force
publish-rpms:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 88d5b0e

Please sign in to comment.