test gitea
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
name: Deploy to Railway
|
name: Deploy to Railway
|
||||||
on:
|
on: [push]
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main # Only deploy when you push to the main branch
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -11,15 +7,10 @@ jobs:
|
|||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: '18'
|
|
||||||
|
|
||||||
- name: Install Railway CLI
|
- name: Install Railway CLI
|
||||||
run: npm install -g @railway/cli
|
run: npm install -g @railway/cli
|
||||||
|
|
||||||
- name: Deploy to honey-be
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
railway up --detach \
|
railway up --detach \
|
||||||
--project ddbcce93-869f-4df5-bad3-cc039e399b71 \
|
--project ddbcce93-869f-4df5-bad3-cc039e399b71 \
|
||||||
|
|||||||
18
.gitea/workflows/test.yaml
Normal file
18
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: Network Test
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
test_network:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Inspect Container Environment
|
||||||
|
run: |
|
||||||
|
echo "1. My IP address:"
|
||||||
|
hostname -I
|
||||||
|
echo "2. My Hosts file:"
|
||||||
|
cat /etc/hosts
|
||||||
|
echo "3. My Resolv.conf:"
|
||||||
|
cat /etc/resolv.conf
|
||||||
|
echo "4. Can I see Gitea by IP?"
|
||||||
|
curl -I http://172.19.0.2:3000 || echo "Failed to reach IP"
|
||||||
|
echo "5. Can I see Gitea by Name?"
|
||||||
|
curl -I http://server:3000 || echo "Failed to reach Name"
|
||||||
Reference in New Issue
Block a user