From aa11014ab955457aeb20a06cc5375048c301bd87 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 24 Aug 2023 17:20:35 +1000 Subject: [PATCH] actions: Start adding a dev build --- .gitea/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 7620559..c754326 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -22,6 +22,8 @@ jobs: 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/}}" + docker build -t hnshosting-master:$tag_num . docker tag hnshosting-master:$tag_num git.woodburn.au/nathanwoodburn/hnshosting-master:$tag_num docker push git.woodburn.au/nathanwoodburn/hnshosting-master:$tag_num @@ -47,6 +49,7 @@ jobs: 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/}}" docker build -t hnshosting-bot:$tag_num . docker tag hnshosting-bot:$tag_num git.woodburn.au/nathanwoodburn/hnshosting-bot:$tag_num docker push git.woodburn.au/nathanwoodburn/hnshosting-bot:$tag_num