Skip to content

Commit d1346f6

Browse files
author
Eric Stroczynski
authored
[v1.5.x] workflows/deploy-manual: tag using branch name (#4725) (#4726)
Signed-off-by: Eric Stroczynski <[email protected]>
1 parent 052de7c commit d1346f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-manual.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: checkout
3131
uses: actions/checkout@v2
3232
with:
33-
fetch-depth: 0
33+
fetch-depth: 1
3434

3535
- name: create tag
3636
id: tag
@@ -39,7 +39,7 @@ jobs:
3939
IMG=quay.io/${{ github.repository_owner }}/ansible-operator-base
4040
TAG="${{ github.event.inputs.tag }}"
4141
if [[ "$TAG" == "" ]]; then
42-
TAG=$(git describe --tags --always --dirty --long --abbrev=100)
42+
TAG="$(git branch --show-current | sed -E 's|/+|-|g')-$(git rev-parse HEAD)"
4343
fi
4444
echo ::set-output name=tag::${IMG}:${TAG}
4545

0 commit comments

Comments
 (0)