Skip to content

update byteman to v4.0.22 (#19) #4

update byteman to v4.0.22 (#19)

update byteman to v4.0.22 (#19) #4

Workflow file for this run

name: Release
on:
push:
branches:
- main
tags:
- v*
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: "8"
distribution: "adopt"
- name: Build with Maven
run: |
cd BytemanHelper
mvn package -Dmaven.test.skip=true
cd ..
cd ChaosAgent
mvn package -Dmaven.test.skip=true
cd ..
cd AgentInstaller
mvn package -Dmaven.test.skip=true
cd ..
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Configure awscli
run: |
pip3 install awscli
printf "%s\n" ${{ secrets.AWS_ACCESS_KEY }} ${{ secrets.AWS_SECRET_KEY }} ${{ secrets.AWS_REGION }} "json" | aws configure
- name: Package and Upload
env:
BYTEMAN_VERSION: 4.0.22
HELPER_VERSION: 0.12
VERSION: ${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
run: |
BYTEMAN_DIR=byteman-download-${BYTEMAN_VERSION}
curl -fsSLO https://downloads.jboss.org/byteman/${BYTEMAN_VERSION}/${BYTEMAN_DIR}-bin.zip
unzip ${BYTEMAN_DIR}-bin.zip
cp ./BytemanHelper/target/byteman-helper-${HELPER_VERSION}.jar ./${BYTEMAN_DIR}/lib/byteman-helper.jar
cp ./AgentInstaller/target/agent-installer-${HELPER_VERSION}.jar ./${BYTEMAN_DIR}/lib/agent-installer.jar
cp ./ChaosAgent/target/chaos-agent-${HELPER_VERSION}.jar ./${BYTEMAN_DIR}/lib/chaos-agent.jar
cp ./Scripts/bminstall.sh ./${BYTEMAN_DIR}/bin/
mv ./byteman-download-${BYTEMAN_VERSION} ./byteman-chaos-mesh-download-${VERSION}
tar czvf ./byteman-chaos-mesh-download-${VERSION}.tar.gz ./byteman-chaos-mesh-download-${VERSION}
aws s3 cp ./byteman-chaos-mesh-download-${VERSION}.tar.gz ${{ secrets.AWS_BUCKET_NAME }}/byteman-chaos-mesh-download-${VERSION}.tar.gz