fix CI: clone fresh repo instead of cd into existing dir
Deploy t-youtube / Build & Deploy (push) Failing after 2m9s
Deploy t-youtube / Build & Deploy (push) Failing after 2m9s
This commit is contained in:
@@ -16,14 +16,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
cd /volume1/docker/t-youtube
|
||||
git fetch --tags origin main 2>&1 || \
|
||||
git fetch --tags https://gitea:3000/jimmy/t-youtube.git main 2>&1
|
||||
git merge FETCH_HEAD 2>&1
|
||||
git clone --depth=1 --branch main http://100.78.131.124:3300/jimmy/t-youtube.git /tmp/t-youtube-build 2>&1
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
cd /volume1/docker/t-youtube
|
||||
cd /tmp/t-youtube-build
|
||||
/volume1/@appstore/ContainerManager/usr/bin/docker build -t t-youtube:latest . 2>&1
|
||||
|
||||
- name: Swap container
|
||||
|
||||
Reference in New Issue
Block a user