forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit for CICD pipeline using runway
- Loading branch information
User surr@freshworks.com created by Teleport
committed
Oct 24, 2024
1 parent
0e7fdf5
commit d3f21e1
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |