forked from gojue/ecapture
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request gojue#5 from step-security/int-workflows
Add INT workflows
- Loading branch information
Showing
2 changed files
with
96 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,50 @@ | ||
name: INT Release | ||
on: | ||
push: | ||
branches: | ||
- int | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.21.0" | ||
- name: Install Compilers | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --yes build-essential pkgconf libelf-dev llvm-9 clang-9 linux-tools-common linux-tools-generic | ||
for tool in "clang" "llc" "llvm-strip" | ||
do | ||
sudo rm -f /usr/bin/$tool | ||
sudo ln -s /usr/bin/$tool-9 /usr/bin/$tool | ||
done | ||
shell: bash | ||
- name: Build eCapture | ||
run: | | ||
make env | ||
make -f builder/Makefile.release snapshot SNAPSHOT_VERSION="int" | ||
- run: | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
|
||
- name: Push amd64 archive to S3 | ||
run: | | ||
archive="ecapture-int-linux-amd64.tar.gz" | ||
mv ./bin/ecapture-int-linux-x86_64.tar.gz ./bin/$archive | ||
ls -lah ./bin | ||
aws s3 cp ./bin/$archive s3://step-security-agent/refs/heads/ecapture/int/$archive --acl public-read |
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,46 @@ | ||
name: INT Pull Request | ||
on: | ||
pull_request: | ||
branches: | ||
- int | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.21.0" | ||
- name: Install Compilers | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --yes build-essential pkgconf libelf-dev llvm-9 clang-9 linux-tools-common linux-tools-generic | ||
for tool in "clang" "llc" "llvm-strip" | ||
do | ||
sudo rm -f /usr/bin/$tool | ||
sudo ln -s /usr/bin/$tool-9 /usr/bin/$tool | ||
done | ||
shell: bash | ||
- name: Build eCapture | ||
run: | | ||
make env | ||
make -f builder/Makefile.release snapshot SNAPSHOT_VERSION="int-pull" | ||
- run: | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
|
||
- name: Push to S3 | ||
run: | | ||
ls -lah ./bin | ||
binary_to_push="./bin/ecapture" | ||
aws s3 cp $binary_to_push s3://step-security-agent/refs/heads/ecapture/int/ecapture --acl public-read |