Skip to content

Commit

Permalink
Update deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
alaminAppnap authored Jan 16, 2024
1 parent 2bab0e7 commit 93754cb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
name: Application Deployment

on:
push:
tags:
- "v*.*.*"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Check tag format
run: |
tag_name="${{ github.ref }}"
if [[ $tag_name =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Running production.yaml for tag: $tag_name"
elif [[ $tag_name =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+-RC\.[0-9]+$ ]]; then
echo "Running staging.yaml for tag: $tag_name"
else
echo "Tag format not recognized, skipping deployment."
fi

0 comments on commit 93754cb

Please sign in to comment.