Fixing version visibility

This commit is contained in:
Sahil Ahuja 2025-03-06 23:28:17 +05:30
parent 58708425fd
commit ae65162eb4
3 changed files with 10 additions and 12 deletions

View File

@ -52,7 +52,7 @@ jobs:
with:
github-server-url: ${{ github.server_url }}
repository: gmetribin/deploy-tools
ref: v1.1.38
ref: v1.1.39
path: deploy-tools
# token: $\{{ github.token }} # DEFAULT / Any pushes with github.token don't trigger a chained build
@ -63,18 +63,14 @@ jobs:
git config --global user.email 'techbots+build@gmetri.com'
TAG=${{ steps.read-issue.outputs.TAG }}
REPO=${{ steps.read-issue.outputs.REPO }}
SENDER=${{ steps.read-issue.outputs.SENDER }}
export REPO=${{ steps.read-issue.outputs.REPO }}
export SENDER=${{ steps.read-issue.outputs.SENDER }}
DOCKER_REPO=${{ steps.read-issue.outputs.DOCKER_REPO }}
REPOLIST=./.github/repolist.txt
pwd; ls -al;
cd cs;
source ../deploy-tools/src/repo_to_cs.sh -m $DOCKER_REPO -t $TAG -r $REPOLIST;
echo "NEW_TAG: $NEW_TAG"
COMMIT_MESSAGE="$NEW_TAG: $REPO to $TAG by $SENDER";
git commit -m "$COMMIT_MESSAGE"
git tag -a $NEW_TAG -m "$COMMIT_MESSAGE"
git push origin main;
git push --tags origin main;

View File

@ -61,7 +61,7 @@ jobs:
with:
github-server-url: ${{ github.server_url }}
repository: gmetribin/deploy-tools
ref: v1.1.38
ref: v1.1.39
path: deploy-tools
- name: Increment cs version in nm repo and push

View File

@ -39,10 +39,12 @@ main()
done <<< "$KUST_FILES_LINES"
source $SCRIPT_DIR/repo_to_cs_basetag.sh;
# cat $NEW_TAG > version; #To always allow a commit
# git add version;
# git commit -m "$NEW_TAG: $IMAGE updated to $IMAGE_TAG";
# git tag -a $NEW_TAG -m "$NEW_TAG: $IMAGE updated to $IMAGE_TAG"
echo "NEW_TAG: $NEW_TAG"
COMMIT_MESSAGE="$NEW_TAG: $REPO to $TAG by $SENDER";
git commit -m "$COMMIT_MESSAGE"
git tag -a $NEW_TAG -m "$COMMIT_MESSAGE"
}
### Starts here