fix: add directory listing and Dockerfile check before building image
Some checks failed
Deploy Production / deploy (push) Failing after 30s
Some checks failed
Deploy Production / deploy (push) Failing after 30s
This commit is contained in:
@@ -27,6 +27,13 @@ jobs:
|
||||
shell: sh
|
||||
run: |
|
||||
cd /workspace/repo
|
||||
echo "Current directory: $(pwd)"
|
||||
echo "Files in directory:"
|
||||
ls -la
|
||||
if [ ! -f Dockerfile ]; then
|
||||
echo "ERROR: Dockerfile not found!"
|
||||
exit 1
|
||||
fi
|
||||
docker build -t tablejerseys-web:latest .
|
||||
docker save tablejerseys-web:latest | gzip > tablejerseys-web.tar.gz
|
||||
|
||||
|
||||
Reference in New Issue
Block a user