-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
307 changed files
with
9,087 additions
and
5,724 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
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
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 |
---|---|---|
|
@@ -14,13 +14,13 @@ permissions: | |
jobs: | ||
dependabot: | ||
name: Serverless gomod update | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.pull_request.user.login == 'tempo-gh-bot[bot]' }} | ||
runs-on: ubuntu-24.04 | ||
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | ||
steps: | ||
- name: Set up Go 1.22 | ||
- name: Set up Go 1.23 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.23.1 | ||
go-version: 1.23.3 | ||
|
||
- name: Get app token | ||
uses: actions/create-github-app-token@v1 | ||
|
@@ -44,6 +44,8 @@ jobs: | |
USER: x-access-token | ||
TOKEN: ${{ steps.get-github-app-token.outputs.token }} | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "tempo-gh-bot[bot]" | ||
git config --global url."https://${USER}:${TOKEN}@github.com/grafana/tempo".insteadOf "https://github.com/grafana/tempo" | ||
git add cmd/tempo-serverless/lambda/go.mod | ||
git add cmd/tempo-serverless/lambda/go.sum | ||
|
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 |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: docker-ci-tools | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'tools/**' | ||
|
||
env: | ||
IMAGE_NAME: grafana/tempo-ci-tools | ||
|
||
# Needed to login to DockerHub | ||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
|
||
get-image-tag: | ||
if: github.repository == 'grafana/tempo' # skip in forks | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
tag: ${{ steps.get-tag.outputs.tag }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- id: get-tag | ||
run: | | ||
echo "tag=$(./tools/image-tag)" >> "$GITHUB_OUTPUT" | ||
docker-ci-tools: | ||
if: github.repository == 'grafana/tempo' | ||
needs: get-image-tag | ||
strategy: | ||
matrix: | ||
runner_arch: [ { runner: ubuntu-24.04, arch: amd64 }, { runner: github-hosted-ubuntu-arm64, arch: arm64 } ] | ||
runs-on: ${{ matrix.runner_arch.runner }} | ||
env: | ||
TAG: ${{ needs.get-image-tag.outputs.tag }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to DockerHub | ||
uses: grafana/shared-workflows/actions/[email protected] | ||
|
||
- name: docker-build-and-push | ||
run: | | ||
TAG_ARCH="$TAG-${{ matrix.runner_arch.arch }}" | ||
docker build -f tools/Dockerfile -t $IMAGE_NAME:$TAG_ARCH . | ||
docker push $IMAGE_NAME:$TAG_ARCH | ||
manifest: | ||
if: github.repository == 'grafana/tempo' | ||
needs: ['get-image-tag', 'docker-ci-tools'] | ||
runs-on: ubuntu-latest | ||
env: | ||
TAG: ${{ needs.get-image-tag.outputs.tag }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Login to DockerHub | ||
uses: grafana/shared-workflows/actions/[email protected] | ||
|
||
- name: docker-manifest-create-and-push | ||
run: | | ||
docker manifest create \ | ||
$IMAGE_NAME:$TAG \ | ||
--amend $IMAGE_NAME:$TAG-amd64 \ | ||
--amend $IMAGE_NAME:$TAG-arm64 | ||
docker manifest push $IMAGE_NAME:$TAG | ||
docker manifest create \ | ||
$IMAGE_NAME:latest \ | ||
--amend $IMAGE_NAME:$TAG-amd64 \ | ||
--amend $IMAGE_NAME:$TAG-arm64 | ||
docker manifest push $IMAGE_NAME:latest |
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.