Обновить .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
|
@ -10,25 +10,29 @@ jobs:
|
||||||
runs-on: kyc_runner
|
runs-on: kyc_runner
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set deployment directory
|
- name: Set up workspace directory
|
||||||
run: |
|
run: mkdir -p /opt/myapp
|
||||||
mkdir -p /opt/myapp
|
|
||||||
cd /opt/myapp
|
|
||||||
|
|
||||||
- name: Checkout repository to custom folder
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: /opt/myapp
|
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
|
run: ls -lah /opt/myapp
|
||||||
|
|
||||||
- name: Stop and remove old containers
|
- name: Start the application with Docker Compose
|
||||||
run: |
|
|
||||||
cd /opt/myapp
|
|
||||||
docker-compose down || echo "No running containers to stop"
|
|
||||||
|
|
||||||
- name: Start application with Docker Compose
|
|
||||||
run: |
|
run: |
|
||||||
cd /opt/myapp
|
cd /opt/myapp
|
||||||
docker-compose up --build -d
|
docker-compose up --build -d
|
||||||
|
|
||||||
|
- name: Verify running containers
|
||||||
|
run: docker ps -a
|
||||||
|
|
Loading…
Reference in New Issue
Block a user