Skip to content

Commit

Permalink
feat(agent): docker image (#3189)
Browse files Browse the repository at this point in the history
* feat(agent): add docker image based on tracetest

* feat: use latest tag

* feat: use latest release

* fix: remove old entrypoint

* include github actions

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* remove testing code
  • Loading branch information
mathnogueira authored Sep 27, 2023
1 parent 33791c0 commit 9474d33
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,16 @@ jobs:
ANALYTICS_FE_KEY: ${{ secrets.ANALYTICS_FE_KEY }}
ANALYTICS_BE_KEY: ${{ secrets.ANALYTICS_BE_KEY }}
TRACETEST_DEFAULT_CLOUD_ENDPOINT: ${{ secrets.TRACETEST_DEFAULT_CLOUD_ENDPOINT }}

# release agent
- name: Build and push agent
uses: docker/build-push-action@v5
with:
push: true
tags: kubeshop/tracetest-agent:${{ env.VERSION }}
file: agent/Dockerfile
build-args: |
TRACETEST_VERSION=${{ env.VERSION }}
env:
VERSION: ${{ github.ref_name }}

13 changes: 13 additions & 0 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,19 @@ jobs:
ANALYTICS_BE_KEY: ${{ secrets.ANALYTICS_BE_KEY }}
TRACETEST_DEFAULT_CLOUD_ENDPOINT: ${{ secrets.TRACETEST_DEFAULT_CLOUD_ENDPOINT }}

# release agent
- name: Build and push agent
uses: docker/build-push-action@v5
with:
push: true
tags: kubeshop/tracetest-agent:${{ env.VERSION }}
file: agent/Dockerfile
build-args: |
TRACETEST_VERSION=${{ env.VERSION }}
env:
VERSION: ${{ github.ref_name }}



helm_chart_version_bump:
name: "Trigger Helm chart appVersion update"
Expand Down
9 changes: 9 additions & 0 deletions agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG TRACETEST_VERSION=latest

FROM kubeshop/tracetest:${TRACETEST_VERSION}
WORKDIR /app

ENV TRACETEST_API_KEY ""

ENTRYPOINT [ "tracetest", "start", "--api-key", "$TRACETEST_API_KEY" ]

0 comments on commit 9474d33

Please sign in to comment.