Update to run on tag push only

This commit is contained in:
Skylar Grant 2024-09-29 12:40:54 -04:00
parent 0e34a0a4bb
commit e6936a5364
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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: |