Skip to content

Commit

Permalink
Initial commit for CICD pipeline using runway
Browse files Browse the repository at this point in the history
  • Loading branch information
User surr@freshworks.com created by Teleport committed Oct 24, 2024
1 parent 0e7fdf5 commit d3f21e1
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/runway.yml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions runway.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit d3f21e1

Please sign in to comment.