Added version incrementing logic back to CI/CD logic
All checks were successful
Build and deploy Bridgeman Accessible Hashicorp Vault Implementation / deploy (push) Successful in 11s

This commit is contained in:
Alan Bridgeman 2025-12-28 15:50:38 -06:00
parent b2054f85ec
commit 5494bf4cf8

View file

@ -61,30 +61,30 @@ jobs:
echo "Because the remote version matches the local version, we need to increment the local version's patch number." echo "Because the remote version matches the local version, we need to increment the local version's patch number."
# Increment the patch version of the local version (Ex. 1.0.0 -> 1.0.1) # Increment the patch version of the local version (Ex. 1.0.0 -> 1.0.1)
#IFS='.' read -r major minor patch <<< "$LOCAL_VERSION" IFS='.' read -r major minor patch <<< "$LOCAL_VERSION"
#patch=$((patch + 1)) patch=$((patch + 1))
#NEW_LOCAL_VERSION="$major.$minor.$patch" NEW_LOCAL_VERSION="$major.$minor.$patch"
#echo "New Local Version: $NEW_LOCAL_VERSION" echo "New Local Version: $NEW_LOCAL_VERSION"
#echo "Committing container version change..." echo "Committing container version change..."
#sed -i "s|version: $LOCAL_VERSION|version: $NEW_LOCAL_VERSION|g" metadata.yaml sed -i "s|version: $LOCAL_VERSION|version: $NEW_LOCAL_VERSION|g" metadata.yaml
#LOCAL_VERSION=$NEW_LOCAL_VERSION LOCAL_VERSION=$NEW_LOCAL_VERSION
# Update remote URL to use the GITHUB_TOKEN for authentication # Update remote URL to use the GITHUB_TOKEN for authentication
#git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@git.bridgemanaccessible.ca/${{ github.repository }}.git git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@git.bridgemanaccessible.ca/${{ github.repository }}.git
# Setup git user details for committing the version change and tag # Setup git user details for committing the version change and tag
#git config user.name "Forgejo Actions" git config user.name "Forgejo Actions"
#git config user.email "actions@git.bridgemanaccessible.ca" git config user.email "actions@git.bridgemanaccessible.ca"
# Commit the version change to the `package.json` file # Commit the version change to the `package.json` file
#git add metadata.yaml git add metadata.yaml
#git commit -m "[Forgejo Actions] Update container version to $(yq -r '.version' metadata.yaml)" git commit -m "[Forgejo Actions] Update container version to $(yq -r '.version' metadata.yaml)"
# Push the changes to the repository # Push the changes to the repository
#git push origin HEAD:main git push origin HEAD:main
fi fi
# Build and push the init container image to the repository # Build and push the init container image to the repository