Skip to content

Commit

Permalink
Merge pull request #9 from Food-fusion-Fiap/feat/ms-decomposition-nosql
Browse files Browse the repository at this point in the history
Feat/ms decomposition nosql
  • Loading branch information
mmatheusbr authored Jul 11, 2024
2 parents 933ea77 + 36660c0 commit 8c44d67
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/ci-cd-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,10 @@ jobs:
# kubectl set image deployment/$K8S_DEPLOYMENT_NAME $K8S_DEPLOYMENT_CONTAINER_NAME=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --record
# kubectl rollout status deployment/$K8S_DEPLOYMENT_NAME

# Replace with your logic to determine the next tag name
- name: Determine next tag
id: tagger
run: echo "::set-output name=next_tag::v1.0.0" # Example logic to set the tag name

- name: Push new tag to GitHub
id: create_tag
- name: Generate semantic version tag
uses: hennejg/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push tag
run: |
latest_tag=$(git describe --tags --abbrev=0)
# Assuming your versioning scheme is numeric (e.g., vX.Y.Z)
version="${latest_tag//v/}"
IFS='.' read -r -a parts <<< "$version"
major="${parts[0]}"
minor="${parts[1]}"
patch="${parts[2]}"
new_version="v$major.$((minor + 1)).0" # Increment minor version
git tag "$new_version"
git push origin "$new_version"
git push --follow-tags

0 comments on commit 8c44d67

Please sign in to comment.