actions: Fixed numbering
Some checks failed
Build Docker for Release / Build Container ARM (push) Failing after 16s
Build Docker for Release / Build Container AMD (push) Failing after 21s

This commit is contained in:
Nathan Woodburn 2023-09-11 21:52:53 +10:00
parent b19b1dc6c4
commit 9effaf203c
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -21,12 +21,10 @@ jobs:
- name: Build Docker image
run : |
echo "${{ secrets.DOCKERGIT_TOKEN }}" | docker login git.woodburn.au -u nathanwoodburn --password-stdin
tag=${GITHUB_REF#refs/tags/}
tag=${tag//\//-}
echo "tag=$tag"
tag_num=${GITHUB_RUN_NUMBER}
docker build -t nginx:$tag .
docker tag nginx:$tag git.woodburn.au/nathanwoodburn/nginx:$tag
docker push git.woodburn.au/nathanwoodburn/nginx:$tag
docker tag nginx:$tag git.woodburn.au/nathanwoodburn/nginx:$tag_num
docker push git.woodburn.au/nathanwoodburn/nginx:$tag_num
docker tag nginx:$tag git.woodburn.au/nathanwoodburn/nginx:latest
docker push git.woodburn.au/nathanwoodburn/nginx:latest
@ -47,11 +45,9 @@ jobs:
- name: Build Docker image
run : |
echo "${{ secrets.DOCKERGIT_TOKEN }}" | docker login git.woodburn.au -u nathanwoodburn --password-stdin
tag=${GITHUB_REF#refs/tags/}
tag=${tag//\//-}
echo "tag=$tag"
tag_num=${GITHUB_RUN_NUMBER}
docker build -t nginx:$tag .
docker tag nginx:$tag git.woodburn.au/nathanwoodburn/nginx:$tag-arm
docker push git.woodburn.au/nathanwoodburn/nginx:$tag-arm
docker tag nginx:$tag git.woodburn.au/nathanwoodburn/nginx:$tag_num-arm
docker push git.woodburn.au/nathanwoodburn/nginx:$tag_num-arm
docker tag nginx:$tag git.woodburn.au/nathanwoodburn/nginx:latest-arm
docker push git.woodburn.au/nathanwoodburn/nginx:latest-arm