Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-fleming committed Jan 8, 2025
1 parent 329dc50 commit 54ae325
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,10 @@ jobs:
run: |
# Get all tags for the repo and find the latest tag for the branch being built
git fetch --tags --force --quiet
# tag=$(git tag -l $GITHUB_REF_NAME* | tail -1 | cut -d "-" -f2-)
build_num=$(git tag -l $BRANCH_NAME* | tail -1 | cut -d "." -f2-)
echo "BUILD_NUM = $build_num"
((build_num++))
echo "IMAGE_TAG=$GITHUB_REF_NAME.$build_num" >> $GITHUB_ENV
# if [ ! -z "$tag" ];
# then
# # Increment the build number if a tag is found
# build_num=$(echo "${tag##*.}")
# build_num=$((build_num+1))
# echo "IMAGE_TAG=$GITHUB_REF_NAME.$build_num" >> $GITHUB_ENV
# else
# # If no tag is found create a new tag name
# build_num=1
# echo "IMAGE_TAG=$GITHUB_REF_NAME.$build_num" >> $GITHUB_ENV
# fi
- name: Build
id: build-image
run: |
Expand Down

0 comments on commit 54ae325

Please sign in to comment.