-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Food-fusion-Fiap/feat/ms-decomposition-nosql
Feat/ms decomposition nosql
- Loading branch information
Showing
1 changed file
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |