Compare commits
3 Commits
c8b87561a8
...
10e48461d4
| Author | SHA1 | Date | |
|---|---|---|---|
| 10e48461d4 | |||
| d29c2c3a13 | |||
| 951d68f022 |
@@ -22,7 +22,7 @@ jobs:
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
if [ ! -d .git ]; then
|
||||
git clone --branch "${GITHUB_REF_NAME}" --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" .
|
||||
git clone --branch "${GITHUB_REF_NAME}" --depth=1 "http://172.21.0.4:3000/${GITHUB_REPOSITORY}.git" .
|
||||
fi
|
||||
|
||||
- name: Resolve image tags
|
||||
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
cd dashboard/backend
|
||||
if [ "${{ steps.cache-python.outputs.cache-hit }}" = "true" ]; then
|
||||
echo "Restoring venv from cache $CACHE_KEY..."
|
||||
if cp -a $CACHE_DIR/venv . && [ -f venv/bin/activate ]; then
|
||||
if cp -a $CACHE_DIR/venv . && [ -f venv/bin/activate ] && venv/bin/python -m pytest --version >/dev/null 2>&1; then
|
||||
echo "Cache restored successfully"
|
||||
else
|
||||
echo "Cache corrupted, installing fresh..."
|
||||
|
||||
Reference in New Issue
Block a user