Skip to content

Commit

Permalink
DOMA-7068 check tag existence inside release job (#3811)
Browse files Browse the repository at this point in the history
* ci(global): DOMA-7068 check tag existence inside release job

* ci(global): DOMA-7068 add check tag step into release job

* ci(global): DOMA-7068 escape slash inside regex
  • Loading branch information
sitozzz authored Sep 14, 2023
1 parent 96d7ad7 commit 66d5afe
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy_production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ jobs:
PULL_USER: ${{ secrets.PULL_USER }}
PULL_PERSONAL_ACCESS_KEY: ${{ secrets.PULL_PERSONAL_ACCESS_KEY }}
steps:
- name: Check tag
id: 'check-tag'
run: |
if [[ ${{ github.event.ref }} =~ ^refs\/tags\/release-v[0-9]+\.[0-9]+\.[0-9]+$ ]]
then
echo "match=true" >> $GITHUB_OUTPUT
exit 0
else
echo "Wrong tag name was provided. Tag should be created with pattern 'release-vXX.XX.XX'"
exit 1
fi
- name: Login to Sbercloud Container Registry
uses: docker/login-action@v1
with:
Expand Down

0 comments on commit 66d5afe

Please sign in to comment.