From 9effaf203cd55b8d9dcd7a3eed577d9867d716ba Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 11 Sep 2023 21:52:53 +1000 Subject: [PATCH] actions: Fixed numbering --- .gitea/workflows/release.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index afd7d76..6693509 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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 \ No newline at end of file