From e6936a5364887d4e6d4694fd8e02458a05bbb9de Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 29 Sep 2024 12:40:54 -0400 Subject: [PATCH] Update to run on tag push only --- .gitea/workflows/pe-docker.yml | 8 ++++---- .gitea/workflows/production-docker.yml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/pe-docker.yml b/.gitea/workflows/pe-docker.yml index 9e13c26..3fee87d 100644 --- a/.gitea/workflows/pe-docker.yml +++ b/.gitea/workflows/pe-docker.yml @@ -2,8 +2,8 @@ name: NodBot PE Dockerization on: push: - branches: - - pe + tags: + - 'v*-pe' env: DHUB_UNAME: ${{ secrets.DHUB_UNAME }} @@ -15,7 +15,7 @@ jobs: steps: - name: Pull latest from Git run: | - echo "Branch: ${{ gitea.head_ref }}" + echo "Branch: ${{ gitea.ref_name }}" pwd whoami mkdir -p /var/lib/act_runner/ @@ -27,7 +27,7 @@ jobs: cd nodbot git pull fi - git checkout ${{ gitea.head_ref }} + git checkout ${{ gitea.ref_name }} - name: Build the Docker image run: | cd /var/lib/act_runner/nodbot diff --git a/.gitea/workflows/production-docker.yml b/.gitea/workflows/production-docker.yml index f824157..543e779 100644 --- a/.gitea/workflows/production-docker.yml +++ b/.gitea/workflows/production-docker.yml @@ -1,9 +1,9 @@ name: NodBot Production Dockerization on: - pull_request: - branches: - - main + push: + tags: + - 'v*' env: DHUB_UNAME: ${{ secrets.DHUB_UNAME }} @@ -15,7 +15,7 @@ jobs: steps: - name: Pull latest from Git run: | - echo "Branch: ${{ gitea.head_ref }}" + echo "Branch: ${{ gitea.ref_name }}" pwd whoami mkdir -p /var/lib/act_runner/ @@ -27,7 +27,7 @@ jobs: cd nodbot git pull fi - git checkout ${{ gitea.head_ref }} + git checkout ${{ gitea.ref_name }} git pull - name: Build the Docker image run: |