fix CI: use git -C and absolute paths, avoid cd
Deploy t-youtube / Build & Deploy (push) Failing after 5s
Deploy t-youtube / Build & Deploy (push) Failing after 5s
This commit is contained in:
@@ -16,15 +16,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Pull latest code
|
- name: Pull latest code
|
||||||
run: |
|
run: |
|
||||||
cd /volume1/docker/t-youtube
|
git -C /volume1/docker/t-youtube fetch http://localhost:3300/jimmy/t-youtube.git main 2>&1
|
||||||
git fetch http://localhost:3300/jimmy/t-youtube.git main 2>&1
|
git -C /volume1/docker/t-youtube merge FETCH_HEAD 2>&1
|
||||||
git merge FETCH_HEAD 2>&1
|
|
||||||
echo "OK: code updated"
|
echo "OK: code updated"
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
cd /volume1/docker/t-youtube
|
/volume1/@appstore/ContainerManager/usr/bin/docker build -t t-youtube:latest /volume1/docker/t-youtube 2>&1
|
||||||
/volume1/@appstore/ContainerManager/usr/bin/docker build -t t-youtube:latest . 2>&1
|
|
||||||
echo "OK: image built"
|
echo "OK: image built"
|
||||||
|
|
||||||
- name: Swap & Verify
|
- name: Swap & Verify
|
||||||
|
|||||||
Reference in New Issue
Block a user