From d3f21e132335e812d9f24fa42e462a40672224db Mon Sep 17 00:00:00 2001 From: "User surr@freshworks.com created by Teleport" Date: Thu, 24 Oct 2024 05:29:56 +0000 Subject: [PATCH] Initial commit for CICD pipeline using runway --- .github/workflows/runway.yml | 26 ++++++++++++++++++++++++++ runway.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100755 .github/workflows/runway.yml create mode 100755 runway.yaml diff --git a/.github/workflows/runway.yml b/.github/workflows/runway.yml new file mode 100755 index 000000000000..f480efd43fd7 --- /dev/null +++ b/.github/workflows/runway.yml @@ -0,0 +1,26 @@ +name: CI Pipeline + +on: + push: + branches: + - cicd_trial + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install Runway + run: | + pip install runway + + - name: Run Runway Deployment + run: | + runway deploy --tag ci diff --git a/runway.yaml b/runway.yaml new file mode 100755 index 000000000000..1cad40d8c084 --- /dev/null +++ b/runway.yaml @@ -0,0 +1,25 @@ +--- +deployments: +- name: envoy-build + modules: + - path: ./ + environments: + ci: + pre_build_steps: + - echo "Checking out cicd_trial branch" + - git checkout cicd_trial + - echo "Connecting to EC2 instance and triggering Bazel build in a screen session" + - | + tsh ssh suryadeepr@ip-10-217-182-252.ec2.internal << EOF + cd ~/valgrind_build/envoy/ + git checkout v1.28.0-dbaas + git pull origin v1.28.0-dbaas + screen -dmS bazel_build bash -c ' + export CC=/usr/bin/clang + export CXX=/usr/bin/clang++ + bazel build --config=clang --config=libc++ -c dbg --copt=-g --copt=-fno-omit-frame-pointer --copt=-Os --copt=-fdebug-types-section --features=per_object_debug_info --linkopt=-Wl,--strip-debug --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --strip=never //source/exe:envoy-static --subcommands --verbose_failures > build_output.log 2>&1' + EOF + post_build_steps: + - echo "Build command issued to EC2" + - echo "Checking build status log" + - tsh ssh suryadeepr@ip-10-217-182-252.ec2.internal "cat /path/to/project/build_status.log"