Обновить .gitea/workflows/test-runner.yml
Some checks failed
Deploy App / deploy (push) Failing after 1s
Some checks failed
Deploy App / deploy (push) Failing after 1s
This commit is contained in:
parent
d529f739e4
commit
02b60ca36e
|
@ -9,26 +9,30 @@ jobs:
|
|||
deploy:
|
||||
runs-on: kyc_runner
|
||||
steps:
|
||||
|
||||
- name: Set up workspace directory
|
||||
run: mkdir -p /opt/myapp
|
||||
|
||||
- name: Set deployment directory
|
||||
run: |
|
||||
mkdir -p /opt/myapp
|
||||
cd /opt/myapp
|
||||
|
||||
- name: Checkout repository to custom folder
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: /opt/myapp
|
||||
|
||||
- name: List files (debugging)
|
||||
- name: Verify Node.js installation
|
||||
run: |
|
||||
if ! command -v node &> /dev/null; then
|
||||
echo "Node.js not found, installing..."
|
||||
sudo apt update && sudo apt install -y nodejs
|
||||
fi
|
||||
echo "Using Node.js version: $(node -v)"
|
||||
|
||||
- name: List repository files
|
||||
run: ls -lah /opt/myapp
|
||||
|
||||
- name: Stop and remove old containers
|
||||
run: |
|
||||
cd /opt/myapp
|
||||
docker-compose down || echo "No running containers to stop"
|
||||
|
||||
- name: Start application with Docker Compose
|
||||
- name: Start the application with Docker Compose
|
||||
run: |
|
||||
cd /opt/myapp
|
||||
docker-compose up --build -d
|
||||
|
||||
- name: Verify running containers
|
||||
run: docker ps -a
|
||||
|
|
Loading…
Reference in New Issue
Block a user