Skip to content

Commit

Permalink
Merge pull request gojue#5 from step-security/int-workflows
Browse files Browse the repository at this point in the history
Add INT workflows
  • Loading branch information
h0x0er committed Feb 21, 2024
2 parents ff5c7a6 + 559a89b commit c1a937a
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/int-release.yml
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
46 changes: 46 additions & 0 deletions .github/workflows/int.yml
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

0 comments on commit c1a937a

Please sign in to comment.