-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into multiarch-builds
- Loading branch information
Showing
747 changed files
with
127,113 additions
and
16,269 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
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 |
---|---|---|
|
@@ -4,6 +4,9 @@ on: | |
branches: | ||
- master | ||
|
||
env: | ||
OTEL_COLLECTOR_VERSION: 0.60.0 | ||
|
||
jobs: | ||
docker: | ||
name: Docker | ||
|
@@ -44,7 +47,7 @@ jobs: | |
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
tags: ghcr.io/apiclarity/apiclarity:latest | ||
tags: ghcr.io/openclarity/apiclarity:latest | ||
file: Dockerfile | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
|
@@ -59,7 +62,7 @@ jobs: | |
with: | ||
context: plugins | ||
platforms: linux/amd64,linux/arm64 | ||
tags: ghcr.io/apiclarity/kong-plugin:latest | ||
tags: ghcr.io/openclarity/kong-plugin:latest | ||
file: plugins/Dockerfile.kong | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
|
@@ -69,15 +72,15 @@ jobs: | |
id: tyk-dep | ||
run: | | ||
cd plugins/gateway/tyk/v3.2.2 | ||
go mod edit -replace github.com/apiclarity/apiclarity/plugins/[email protected]=./../api | ||
go mod edit -replace github.com/apiclarity/apiclarity/plugins/[email protected]=./../common | ||
go mod edit -replace github.com/openclarity/apiclarity/plugins/[email protected]=./../api | ||
go mod edit -replace github.com/openclarity/apiclarity/plugins/[email protected]=./../common | ||
- name: Build Tyk Plugin | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: plugins | ||
platforms: linux/amd64 # tykio/tyk-plugin-compiler does not currently support other architectures | ||
tags: ghcr.io/apiclarity/tyk-plugin-v3.2.2:latest | ||
tags: ghcr.io/openclarity/tyk-plugin-v3.2.2:latest | ||
file: plugins/Dockerfile.tyk.v3.2.2 | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
|
@@ -88,10 +91,22 @@ jobs: | |
with: | ||
context: plugins | ||
platforms: linux/amd64,linux/arm64 | ||
tags: ghcr.io/apiclarity/passive-taper:latest | ||
tags: ghcr.io/openclarity/passive-taper:latest | ||
file: plugins/Dockerfile.taper | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
build-args: | | ||
VERSION=latest | ||
VERSION=latest | ||
- name: Build OpenTelemetry Collector with APIClarity plugin | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: plugins | ||
tags: ghcr.io/openclarity/otel-apiclarityexporter:latest | ||
file: plugins/Dockerfile.otel-collector | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
build-args: | | ||
OTEL_COLLECTOR_VERSION=${{ env.OTEL_COLLECTOR_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 |
---|---|---|
|
@@ -11,14 +11,15 @@ on: | |
required: true | ||
|
||
env: | ||
GO_VERSION: 1.16 | ||
GO_VERSION: 1.17 | ||
OTEL_COLLECTOR_VERSION: 0.60.0 | ||
|
||
jobs: | ||
verification: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
|
@@ -55,7 +56,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
|
@@ -72,10 +73,10 @@ jobs: | |
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
sed -i 's/image: ghcr.io\/apiclarity\/kong-plugin:latest/image: ghcr.io\/apiclarity\/kong-plugin:'"$tag"'/g' plugins/gateway/kong/deploy/patch-deployment.yaml | ||
sed -i 's/image: ghcr.io\/openclarity\/kong-plugin:latest/image: ghcr.io\/openclarity\/kong-plugin:'"$tag"'/g' plugins/gateway/kong/deploy/patch-deployment.yaml | ||
git commit plugins/gateway/kong/deploy/patch-deployment.yaml -m "workflow: update tag in kong deploy script" | ||
sed -i 's/image: ghcr.io\/apiclarity\/tyk-plugin-v3.2.2:latest/image: ghcr.io\/apiclarity\/tyk-plugin-v3.2.2:'"$tag"'/g' plugins/gateway/tyk/deploy/patch-deployment.yaml | ||
sed -i 's/image: ghcr.io\/openclarity\/tyk-plugin-v3.2.2:latest/image: ghcr.io\/openclarity\/tyk-plugin-v3.2.2:'"$tag"'/g' plugins/gateway/tyk/deploy/patch-deployment.yaml | ||
git commit plugins/gateway/tyk/deploy/patch-deployment.yaml -m "workflow: update tag in tyk deploy script" | ||
git tag --annotate --message "Tag for release $tag" "$tag" | ||
|
@@ -111,7 +112,7 @@ jobs: | |
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
tags: ghcr.io/apiclarity/apiclarity:${{ github.event.inputs.version }} | ||
tags: ghcr.io/openclarity/apiclarity:${{ github.event.inputs.version }} | ||
file: Dockerfile | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
|
@@ -126,7 +127,7 @@ jobs: | |
with: | ||
context: plugins | ||
platforms: linux/amd64,linux/arm64 | ||
tags: ghcr.io/apiclarity/kong-plugin:${{ github.event.inputs.version }} | ||
tags: ghcr.io/openclarity/kong-plugin:${{ github.event.inputs.version }} | ||
file: plugins/Dockerfile.kong | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
|
@@ -136,15 +137,15 @@ jobs: | |
id: tyk-dep | ||
run: | | ||
cd plugins/gateway/tyk/v3.2.2 | ||
go mod edit -replace github.com/apiclarity/apiclarity/plugins/[email protected]=./../api | ||
go mod edit -replace github.com/apiclarity/apiclarity/plugins/[email protected]=./../common | ||
go mod edit -replace github.com/openclarity/apiclarity/plugins/[email protected]=./../api | ||
go mod edit -replace github.com/openclarity/apiclarity/plugins/[email protected]=./../common | ||
- name: Build and Push Tyk plugin | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: plugins | ||
platforms: linux/amd64 # tykio/tyk-plugin-compiler does not currently support other architectures | ||
tags: ghcr.io/apiclarity/tyk-plugin-v3.2.2:${{ github.event.inputs.version }} | ||
tags: ghcr.io/openclarity/tyk-plugin-v3.2.2:${{ github.event.inputs.version }} | ||
file: plugins/Dockerfile.tyk.v3.2.2 | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
|
@@ -159,14 +160,26 @@ jobs: | |
with: | ||
context: plugins | ||
platforms: linux/amd64,linux/arm64 | ||
tags: ghcr.io/apiclarity/passive-taper:${{ github.event.inputs.version }} | ||
tags: ghcr.io/openclarity/passive-taper:${{ github.event.inputs.version }} | ||
file: plugins/Dockerfile.taper | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
build-args: | | ||
VERSION=${{ github.event.inputs.version }} | ||
- name: Build and Push OpenTelemetry Collector with APIClarity plugin | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: plugins | ||
tags: ghcr.io/openclarity/otel-apiclarityexporter:${{ github.event.inputs.version }} | ||
file: plugins/Dockerfile.otel-collector | ||
push: true | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache | ||
build-args: | | ||
OTEL_COLLECTOR_VERSION=${{ env.OTEL_COLLECTOR_VERSION }} | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
|
@@ -183,7 +196,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
|
@@ -197,33 +210,49 @@ jobs: | |
run: find . -type f -name "values.yaml" -o -name "Chart.yaml" | | ||
xargs sed -i -e s/latest/${{ github.event.inputs.version }}/g | ||
|
||
- name: Replace wasm filter commit id and sha256 | ||
id: replace_wasm_filter_commit_id_for_kuma | ||
run: | | ||
WASM_COMMIT="$(git rev-parse HEAD:wasm-filters)" | ||
WASM_SHA256="$(sha256sum wasm-filters/bin/release/http-trace-filter.wasm | cut -d' ' -f1)" | ||
WASM_URI="https://raw.githubusercontent.com/openclarity/wasm-filters/${WASM_COMMIT}/bin/release/http-trace-filter.wasm" | ||
sed -i -e "s/sha256:.*/sha256: \"${WASM_SHA256}\"/" plugins/kuma/charts/values.yaml | ||
sed -i -e "s#wasmFilterURI:.*#wasmFilterURI: \"${WASM_URI}\"#" plugins/kuma/charts/values.yaml | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
uses: azure/setup-helm@v3.5 | ||
with: | ||
version: v3.4.0 | ||
version: v3.10.3 | ||
|
||
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v4.4.0 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Set up chart-testing | ||
uses: helm/chart-testing-action@v2.1.0 | ||
uses: helm/chart-testing-action@v2.3.1 | ||
|
||
- name: Add Bitnami Repository | ||
run: helm repo add bitnami https://charts.bitnami.com/bitnami | ||
|
||
- name: Run chart-testing (lint) | ||
run: ct lint --check-version-increment=false --validate-maintainers=false | ||
run: ct lint --chart-dirs charts,plugins/kuma --check-version-increment=false --validate-maintainers=false --all | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@v1.2.1 | ||
uses: helm/chart-releaser-action@v1.5.0 | ||
with: | ||
charts_dir: charts | ||
config: charts/cr.yaml | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Run chart-releaser for kuma plugin | ||
uses: helm/[email protected] | ||
with: | ||
charts_dir: plugins/kuma | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "wasm-filters"] | ||
path = wasm-filters | ||
url = https://github.com/apiclarity/wasm-filters.git | ||
url = https://github.com/openclarity/wasm-filters.git |
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
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
Oops, something went wrong.