Fix repo paths
This commit is contained in:
parent
43cfb5a7fe
commit
497b0b568d
@ -21,23 +21,23 @@ jobs:
|
|||||||
mkdir -p /var/lib/act_runner/
|
mkdir -p /var/lib/act_runner/
|
||||||
cd /var/lib/act_runner/
|
cd /var/lib/act_runner/
|
||||||
if [ ! -d "nodbot" ]; then
|
if [ ! -d "nodbot" ]; then
|
||||||
git clone https://git.vfsh.dev/voidf1sh/nodbot-dev
|
git clone https://git.vfsh.dev/voidf1sh/nodbot
|
||||||
cd nodbot-dev
|
cd nodbot
|
||||||
else
|
else
|
||||||
cd nodbot-dev
|
cd nodbot
|
||||||
git checkout main
|
git checkout main
|
||||||
git pull
|
git pull
|
||||||
fi
|
fi
|
||||||
git checkout ${{ gitea.ref_name }}
|
git checkout ${{ gitea.ref_name }}
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: |
|
run: |
|
||||||
cd /var/lib/act_runner/nodbot-dev
|
cd /var/lib/act_runner/nodbot
|
||||||
docker build . --file Dockerfile --tag v0idf1sh/nodbot-dev
|
docker build . --file Dockerfile --tag v0idf1sh/nodbot-dev
|
||||||
- name: Log into Docker Hub
|
- name: Log into Docker Hub
|
||||||
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
|
||||||
- name: Push image to Docker Hub
|
- name: Push image to Docker Hub
|
||||||
run: |
|
run: |
|
||||||
cd /var/lib/act_runner/nodbot-dev
|
cd /var/lib/act_runner/nodbot
|
||||||
docker push v0idf1sh/nodbot-dev
|
docker push v0idf1sh/nodbot-dev
|
||||||
- name: Restart the container
|
- name: Restart the container
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user