From 61c562b898a6c74cc8efbe1976c42b4927a43abc Mon Sep 17 00:00:00 2001 From: Mykhailo Svishchov Date: Fri, 6 Mar 2026 23:55:35 +0200 Subject: [PATCH] test gitea --- .gitea/workflows/deploy.yaml | 14 ++++---------- .gitea/workflows/test.yaml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 63bc0d5..9ddcf83 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,20 +1,14 @@ name: Deploy to Railway -on: - push: - branches: - - main # Only deploy when you push to the main branch - +on: [push] jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v3 - - - name: Install Node.js - uses: actions/setup-node@v3 with: - node-version: '18' + # This forces git to use the IP we know works + repository: http://100.122.146.65:3000/admin/honey-be.git - name: Install Railway CLI run: npm install -g @railway/cli @@ -26,4 +20,4 @@ jobs: --service fe805e80-39a8-41a7-8e79-674b100a1c17 \ --environment 60d98b00-3ea0-497d-ab08-58aa37001500 env: - RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} + RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} \ No newline at end of file diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..154d02b --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -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"