From 51bcdda5d45a7ce77a961a586ecef0da2416a262 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 25 Aug 2023 13:44:13 +1000 Subject: [PATCH] actions: Initial release job --- .gitea/workflows/build.yml | 3 +-- .gitea/workflows/release.yml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f15fd17..5c30eba 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -76,5 +76,4 @@ jobs: docker tag hnshosting-bot:$tag_num git.woodburn.au/nathanwoodburn/hnshosting-bot:$tag_num docker push git.woodburn.au/nathanwoodburn/hnshosting-bot:$tag_num docker tag hnshosting-bot:$tag_num git.woodburn.au/nathanwoodburn/hnshosting-bot:$tag - docker push git.woodburn.au/nathanwoodburn/hnshosting-bot:$tag - \ No newline at end of file + docker push git.woodburn.au/nathanwoodburn/hnshosting-bot:$tag \ No newline at end of file diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..5dd42ae --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,16 @@ +name: Build Docker for Release +run-name: Build Docker Images + +on: + push: + tags: + - '*' + +jobs: + TEST: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Print tag + run: echo "tag=${GITHUB_REF#refs/tags/}" \ No newline at end of file