use branch name as tag name
This commit is contained in:
parent
76f45225d9
commit
6c94484068
1 changed files with 3 additions and 3 deletions
6
.github/workflows/docker-images.yml
vendored
6
.github/workflows/docker-images.yml
vendored
|
|
@ -13,14 +13,14 @@ jobs:
|
|||
- name: Get tag name
|
||||
shell: bash
|
||||
run: |
|
||||
branch=$(echo ${GITHUB_REF#refs/heads/});
|
||||
BRANCH=$(echo ${GITHUB_REF#refs/heads/});
|
||||
if [ -z $BRANCH ]; then
|
||||
exit 1;
|
||||
elif [ $BRANCH == "master" ]; then
|
||||
branch=latest;
|
||||
BRANCH=latest;
|
||||
fi
|
||||
|
||||
echo "##[set-output name=tag;]$(echo $branch)"
|
||||
echo "##[set-output name=tag;]$(echo $BRANCH)"
|
||||
id: tag_name
|
||||
|
||||
# https://github.com/docker/setup-qemu-action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue