actions: Change numbering
All checks were successful
Build Docker / Build Bot (push) Successful in 28s
Build Docker / Build Master (push) Successful in 29s

This commit is contained in:
Nathan Woodburn 2023-08-25 13:21:24 +10:00
parent 19806b7b1b
commit 778c1b3d92
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -21,10 +21,11 @@ jobs:
run : |
cd master
echo "${{ secrets.DOCKERGIT_TOKEN }}" | docker login git.woodburn.au -u nathanwoodburn --password-stdin
tag_num=$(git rev-parse --short HEAD)
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
tag=${tag//\//-}
tag_num=$(git rev-list --count HEAD)
if [[ "$tag" == "main" ]]; then
tag="latest"
else
@ -60,10 +61,10 @@ jobs:
run : |
cd discord-bot
echo "${{ secrets.DOCKERGIT_TOKEN }}" | docker login git.woodburn.au -u nathanwoodburn --password-stdin
tag_num=$(git rev-parse --short HEAD)
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
tag=${tag//\//-}
tag_num=$(git rev-list --count HEAD)
if [[ "$tag" == "main" ]]; then
tag="latest"
else