Compare commits
No commits in common. "main" and "v3.3.3" have entirely different histories.
@ -1,46 +0,0 @@
|
|||||||
name: NodBot PE Dockerization
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*-dev*'
|
|
||||||
|
|
||||||
env:
|
|
||||||
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
|
||||||
DHUB_PWORD: ${{ secrets.DHUB_PWORD }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: self-hosted
|
|
||||||
steps:
|
|
||||||
- name: Pull latest from Git
|
|
||||||
run: |
|
|
||||||
echo "Branch: tags/${{ gitea.ref_name }}"
|
|
||||||
pwd
|
|
||||||
whoami
|
|
||||||
mkdir -p /var/lib/act_runner/
|
|
||||||
cd /var/lib/act_runner/
|
|
||||||
if [ ! -d "nodbot" ]; then
|
|
||||||
git clone https://git.vfsh.dev/voidf1sh/nodbot-dev
|
|
||||||
cd nodbot-dev
|
|
||||||
else
|
|
||||||
cd nodbot-dev
|
|
||||||
git checkout main
|
|
||||||
git pull
|
|
||||||
fi
|
|
||||||
git checkout tags/${{ gitea.ref_name }}
|
|
||||||
- name: Build the Docker image
|
|
||||||
run: |
|
|
||||||
cd /var/lib/act_runner/nodbot-dev
|
|
||||||
docker build . --file Dockerfile --tag v0idf1sh/nodbot-dev
|
|
||||||
- name: Log into Docker Hub
|
|
||||||
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
|
||||||
- name: Push image to Docker Hub
|
|
||||||
run: |
|
|
||||||
cd /var/lib/act_runner/nodbot-dev
|
|
||||||
docker push v0idf1sh/nodbot-dev
|
|
||||||
- name: Restart the container
|
|
||||||
run: |
|
|
||||||
cd /srv/docker/nodbot-dev
|
|
||||||
docker-compose down
|
|
||||||
docker-compose up -d
|
|
@ -1,9 +1,9 @@
|
|||||||
name: NodBot Production Dockerization
|
name: NodBot Production Dockerization
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
tags:
|
branches:
|
||||||
- 'v*-prod*'
|
- main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
|
||||||
@ -15,7 +15,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Pull latest from Git
|
- name: Pull latest from Git
|
||||||
run: |
|
run: |
|
||||||
echo "Branch: tags/${{ gitea.ref_name }}"
|
echo "Branch: ${{ gitea.head_ref }}"
|
||||||
pwd
|
pwd
|
||||||
whoami
|
whoami
|
||||||
mkdir -p /var/lib/act_runner/
|
mkdir -p /var/lib/act_runner/
|
||||||
@ -27,7 +27,7 @@ jobs:
|
|||||||
cd nodbot
|
cd nodbot
|
||||||
git pull
|
git pull
|
||||||
fi
|
fi
|
||||||
git checkout tags/${{ gitea.ref_name }}
|
git checkout ${{ gitea.head_ref }}
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
cd /var/lib/act_runner/nodbot
|
cd /var/lib/act_runner/nodbot
|
||||||
|
Loading…
Reference in New Issue
Block a user