From f24e1561aba3e5ac50a18321b3932d50ad7ef604 Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 06:05:39 -0800 Subject: [PATCH 01/12] Update config.sh --- config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.sh b/config.sh index d5a1f29e..a4265f79 100644 --- a/config.sh +++ b/config.sh @@ -1 +1 @@ -NGROK_TOKEN="1pFAE2q6rntwVvOmn2NCVWgKSFA_7qNyPHgQaPiNZPysgFr5B" +NGROK_TOKEN="26y8czmXbjp4CuFZ2atCQr9sPu4_gjfY5Lc4FAJHCfFYABBy" From 2ec8b02004d8afb621540ee6a28be71dc1d32156 Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 20:29:17 +0600 Subject: [PATCH 02/12] Create main.yml --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..3bc6fb91 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: Build and Run xssh Docker Image + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: false + tags: markatorny/xssh:latest + + - name: Start Docker Compose + run: docker-compose up -d + + - name: Setupfile From b81fb1d7eb80a3a8ce0cecc52a23116f9ccc8bab Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 20:36:11 +0600 Subject: [PATCH 03/12] Update config.sh From c1227764b13a3bc9995e7fe5f562cb9c428d5847 Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 20:42:59 +0600 Subject: [PATCH 04/12] Create a.yml --- .github/workflows/a.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/a.yml diff --git a/.github/workflows/a.yml b/.github/workflows/a.yml new file mode 100644 index 00000000..ed4c7854 --- /dev/null +++ b/.github/workflows/a.yml @@ -0,0 +1,25 @@ +name: Build and Run xssh Docker Image + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Build Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: false + tags: markatorny/xssh:latest + + - name: Start Docker Compose + run: docker-compose up -d From 59eefe1844063235e54fa4168908adf460deb3db Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 07:18:03 -0800 Subject: [PATCH 05/12] Update a.yml --- .github/workflows/a.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/a.yml b/.github/workflows/a.yml index ed4c7854..f59839e1 100644 --- a/.github/workflows/a.yml +++ b/.github/workflows/a.yml @@ -23,3 +23,4 @@ jobs: - name: Start Docker Compose run: docker-compose up -d + From e601d369c527708a8ba02f902df2d1cd5146e523 Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 07:32:15 -0800 Subject: [PATCH 06/12] Update a.yml --- .github/workflows/a.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/a.yml b/.github/workflows/a.yml index f59839e1..15965838 100644 --- a/.github/workflows/a.yml +++ b/.github/workflows/a.yml @@ -23,4 +23,25 @@ jobs: - name: Start Docker Compose run: docker-compose up -d + - name: Loop for 6 hours + run: | + #!/bin/bash + + start_time=$(date +%s) + end_time=$((start_time + 6*60*60)) + + while true + do + current_time=$(date +%s) + + if [[ $current_time -ge $end_time ]] + then + echo "Loop completed" + break + fi + + echo "Looping..." + sleep 60 + done + From 9aa5f77dd65f9f2707587631984420e8012c875b Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 07:36:24 -0800 Subject: [PATCH 07/12] Update a.yml --- .github/workflows/a.yml | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/.github/workflows/a.yml b/.github/workflows/a.yml index 15965838..cd5132c9 100644 --- a/.github/workflows/a.yml +++ b/.github/workflows/a.yml @@ -23,25 +23,11 @@ jobs: - name: Start Docker Compose run: docker-compose up -d - - name: Loop for 6 hours - run: | - #!/bin/bash - start_time=$(date +%s) - end_time=$((start_time + 6*60*60)) - - while true - do - current_time=$(date +%s) - - if [[ $current_time -ge $end_time ]] - then - echo "Loop completed" - break - fi - - echo "Looping..." - sleep 60 - done - - + - name: Run Infinity Loop + run: | + i=1 + while [ $i -gt 0 ]; do + sleep 1h + done + timeout-minutes: 360 From ec105dc01c58579fbec3ccb11fa1dc8bd8ad1cb4 Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 07:49:54 -0800 Subject: [PATCH 08/12] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 13758c79..ea88bb1d 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -# xssh \ No newline at end of file +# xssh + +vps for everyone. + + pass: majalaya From 908065a8b232d393669681dde995f7c601cc5d5c Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 22:02:51 +0600 Subject: [PATCH 09/12] Update a.yml --- .github/workflows/a.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/a.yml b/.github/workflows/a.yml index cd5132c9..e2c3298a 100644 --- a/.github/workflows/a.yml +++ b/.github/workflows/a.yml @@ -24,6 +24,19 @@ jobs: - name: Start Docker Compose run: docker-compose up -d + + - name: Wait for ngrok endpoint + uses: appleboy/wait-for-action@master + with: + host: localhost + port: 22 + timeout: 300s + + - name: Get ngrok endpoint + run: | + echo "Ngrok endpoint: $(curl -s localhost:22/api/tunnels | jq -r .tunnels[0].public_url)" + + - name: Run Infinity Loop run: | i=1 From aeb16b304df1a697c468a589f53f5aed8aa19385 Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 22:10:51 +0600 Subject: [PATCH 10/12] Update a.yml --- .github/workflows/a.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/a.yml b/.github/workflows/a.yml index e2c3298a..fa09a5ed 100644 --- a/.github/workflows/a.yml +++ b/.github/workflows/a.yml @@ -26,7 +26,7 @@ jobs: - name: Wait for ngrok endpoint - uses: appleboy/wait-for-action@master + uses: WyriHaximus/github-action-wait-for-status@master with: host: localhost port: 22 From 871d8b02166dfd7f1d1f17cef13cb496ee375c5c Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Fri, 3 Mar 2023 22:13:06 +0600 Subject: [PATCH 11/12] Update a.yml --- .github/workflows/a.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/a.yml b/.github/workflows/a.yml index fa09a5ed..cd5132c9 100644 --- a/.github/workflows/a.yml +++ b/.github/workflows/a.yml @@ -24,19 +24,6 @@ jobs: - name: Start Docker Compose run: docker-compose up -d - - - name: Wait for ngrok endpoint - uses: WyriHaximus/github-action-wait-for-status@master - with: - host: localhost - port: 22 - timeout: 300s - - - name: Get ngrok endpoint - run: | - echo "Ngrok endpoint: $(curl -s localhost:22/api/tunnels | jq -r .tunnels[0].public_url)" - - - name: Run Infinity Loop run: | i=1 From 4e55d29ba2f1ef95790977c9f8ef75317b88d75a Mon Sep 17 00:00:00 2001 From: Alahi Majnur Osama <123330241+AlahiMajnurOsama@users.noreply.github.com> Date: Sat, 4 Mar 2023 00:34:33 +0600 Subject: [PATCH 12/12] Add .circleci/config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..6554e1f4 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +# Define a job to be invoked later in a workflow. +# See: https://circleci.com/docs/2.0/configuration-reference/#jobs +jobs: + say-hello: + # Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub. + # See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor + docker: + - image: cimg/base:stable + # Add steps to the job + # See: https://circleci.com/docs/2.0/configuration-reference/#steps + steps: + - checkout + - run: + name: "Say hello" + command: "echo Hello, World!" + +# Invoke jobs via workflows +# See: https://circleci.com/docs/2.0/configuration-reference/#workflows +workflows: + say-hello-workflow: + jobs: + - say-hello