Skip to content

Commit 77c2c15

Browse files
committed
Add git fetch --tags before checkout in Docker workflow
- Ensure all tags are available before checking out specific version - Fixes potential issues when manually specifying a version tag - Improves reliability of tag-based checkouts
1 parent dd7397e commit 77c2c15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
5050
- name: Checkout tag
5151
run: |
52+
git fetch --tags
5253
git checkout ${{ steps.version-tag.outputs.tag }}
5354
5455
- name: Log in to GitHub Container Registry

0 commit comments

Comments
 (0)