Update to run on tag push only
This commit is contained in:
parent
0e34a0a4bb
commit
e6936a5364
@ -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
|
||||
|
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user