-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alan Cha <[email protected]>
- Loading branch information
Showing
4 changed files
with
30 additions
and
123 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 |
---|---|---|
|
@@ -5,61 +5,7 @@ on: | |
types: [published] | ||
|
||
jobs: | ||
assets: | ||
name: Publish binaries and Brew formula | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19 | ||
- uses: actions/checkout@v3 | ||
- name: Build binaries | ||
run: | | ||
VERSION=${GITHUB_REF#refs/*/} | ||
echo "Version: ${VERSION}" | ||
make dist | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: _dist/iter8-*.tar.gz | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true | ||
- name: create-checksum | ||
id: create-checksum | ||
run: | | ||
VERSION=${GITHUB_REF#refs/*/} | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
wget https://github.com/iter8-tools/iter8/archive/refs/tags/${VERSION}.zip | ||
sha256sum ${VERSION}.zip > checksum.txt | ||
wget https://github.com/iter8-tools/iter8/archive/refs/tags/${VERSION}.tar.gz | ||
sha256sum ${VERSION}.tar.gz >> checksum.txt | ||
cd _dist | ||
for f in iter8-*.tar.gz | ||
do | ||
sha256sum ${f} >> ../checksum.txt | ||
done | ||
# pick up darwin checksum and export it | ||
echo "SHAFORMAC=$(grep darwin ../checksum.txt | awk '{print $1}')" >> $GITHUB_ENV | ||
- name: Upload checksum to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
asset_name: checksum.txt | ||
file: checksum.txt | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
- name: Update Homebrew formula | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.PERSONAL_TOKEN }} | ||
repository: iter8-tools/homebrew-iter8 | ||
event-type: release | ||
client-payload: '{"ref": "${{ env.VERSION }}", "sha": "${{ github.sha }}", "shaformac": "${{ env.SHAFORMAC }}"}' | ||
|
||
# Push Iter8 image to dockerhub | ||
# Push Iter8 image to Docker Hub | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
needs: assets | ||
|
@@ -95,13 +41,14 @@ jobs: | |
TAG=v${{ env.VERSION }} | ||
kubernetes-http-experiment: | ||
name: Kubernetes http load test | ||
name: Kubernetes HTTP load test | ||
runs-on: ubuntu-latest | ||
needs: | ||
- build-and-push | ||
- assets | ||
steps: | ||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
- name: Start kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
|
@@ -131,7 +78,8 @@ jobs: | |
- build-and-push | ||
- assets | ||
steps: | ||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
- name: Start kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
|
@@ -163,12 +111,13 @@ jobs: | |
- build-and-push | ||
- assets | ||
steps: | ||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
- name: Start kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
wait: 300s | ||
- name: deploy resources to cluster | ||
- name: Deploy resources to cluster | ||
run: | | ||
kubectl create deploy httpbin --image=kennethreitz/httpbin --port=80 | ||
kubectl expose deploy httpbin --port=80 | ||
|
@@ -193,12 +142,13 @@ jobs: | |
- build-and-push | ||
- assets | ||
steps: | ||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
- name: Start kind cluster | ||
uses: helm/[email protected] | ||
with: | ||
wait: 300s | ||
- name: deploy resources to cluster | ||
- name: Deploy resources to cluster | ||
run: | | ||
kubectl create deploy httpbin --image=kennethreitz/httpbin --port=80 | ||
kubectl expose deploy httpbin --port=80 | ||
|
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 |
---|---|---|
|
@@ -55,7 +55,8 @@ jobs: | |
with: | ||
files: charts/iter8 | ||
|
||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
if: steps.modified-files.outputs.any_modified == 'true' | ||
|
||
- name: Start kind cluster ${{ matrix.version }} | ||
|
@@ -108,7 +109,8 @@ jobs: | |
with: | ||
files: charts/iter8 | ||
|
||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
if: steps.modified-files.outputs.any_modified == 'true' | ||
|
||
- name: Start kind cluster ${{ matrix.version }} | ||
|
@@ -163,7 +165,8 @@ jobs: | |
with: | ||
files: charts/iter8 | ||
|
||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
if: steps.modified-files.outputs.any_modified == 'true' | ||
|
||
- name: Start kind cluster ${{ matrix.version }} | ||
|
@@ -218,7 +221,8 @@ jobs: | |
with: | ||
files: charts/iter8 | ||
|
||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
if: steps.modified-files.outputs.any_modified == 'true' | ||
|
||
- name: Start kind cluster ${{ matrix.version }} | ||
|
@@ -275,7 +279,8 @@ jobs: | |
with: | ||
files: charts/autox | ||
|
||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
if: steps.modified-files.outputs.any_modified == 'true' | ||
|
||
- name: Start kind cluster ${{ matrix.version }} | ||
|
@@ -332,7 +337,8 @@ jobs: | |
with: | ||
files: charts/abn | ||
|
||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
if: steps.modified-files.outputs.any_modified == 'true' | ||
|
||
- name: Start kind cluster ${{ matrix.version }} | ||
|
@@ -371,7 +377,8 @@ jobs: | |
with: | ||
files: charts/traffic | ||
|
||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
if: steps.modified-files.outputs.any_modified == 'true' | ||
|
||
- name: Start kind cluster ${{ matrix.version }} | ||
|
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 |
---|---|---|
|
@@ -53,7 +53,8 @@ jobs: | |
with: | ||
files: charts/traffic | ||
|
||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
if: steps.modified-files.outputs.any_modified == 'true' | ||
|
||
- name: Start kind cluster ${{ matrix.version }} | ||
|
@@ -91,7 +92,8 @@ jobs: | |
with: | ||
files: charts/traffic | ||
|
||
- uses: iter8-tools/[email protected] | ||
- name: Install Iter8 | ||
run: go install github.com/iter8-tools/[email protected] | ||
if: steps.modified-files.outputs.any_modified == 'true' | ||
|
||
- name: Start kind cluster ${{ matrix.version }} | ||
|
This file was deleted.
Oops, something went wrong.