-
Notifications
You must be signed in to change notification settings - Fork 526
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
1 parent
ead4ca8
commit 1f2734d
Showing
1 changed file
with
52 additions
and
8 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 |
---|---|---|
|
@@ -16,10 +16,54 @@ concurrency: | |
group: "${{ github.ref_name }}-${{ github.head_ref }}" | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
env: | ||
IMAGE_NAME: grafana/tempo-ci-tools | ||
|
||
jobs: | ||
|
||
get-image-tag: | ||
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)" | ||
echo "tag=$(./tools/image-tag)" >> "$GITHUB_OUTPUT" | ||
docker-ci-tools: | ||
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 | ||
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
|
@@ -55,7 +99,7 @@ jobs: | |
unit-tests: | ||
name: Run Unit Tests | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test-target: | ||
|
@@ -80,7 +124,7 @@ jobs: | |
|
||
integration-tests: | ||
name: Run integration tests | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test-target: | ||
|
@@ -105,7 +149,7 @@ jobs: | |
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
@@ -132,7 +176,7 @@ jobs: | |
|
||
benchmark: | ||
name: Benchmark | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
@@ -147,7 +191,7 @@ jobs: | |
|
||
vendor-check: | ||
name: Vendor check | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
@@ -165,7 +209,7 @@ jobs: | |
|
||
tempo-jsonnet: | ||
name: Check jsonnet & tempo-mixin | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
@@ -186,7 +230,7 @@ jobs: | |
|
||
build-technical-documentation: | ||
name: Build technical documentation | ||
runs-on: ubuntu-24.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|