Skip to content

Commit

Permalink
Remove assets (#1464)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Cha <[email protected]>
  • Loading branch information
Alan-Cha authored May 15, 2023
1 parent 8d70e30 commit 460ede4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 123 deletions.
74 changes: 12 additions & 62 deletions .github/workflows/assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/localtests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/testkustomize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
52 changes: 0 additions & 52 deletions action.yaml

This file was deleted.

0 comments on commit 460ede4

Please sign in to comment.