Skip to content

Commit

Permalink
Test ci-tools build
Browse files Browse the repository at this point in the history
  • Loading branch information
carles-grafana committed Dec 16, 2024
1 parent ead4ca8 commit 520c9e2
Showing 1 changed file with 45 additions and 8 deletions.
53 changes: 45 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,47 @@ 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
steps:
- name: Checkout
uses: actions/checkout@v4

- name: get-tag
run: 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 }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to DockerHub
uses: grafana/shared-workflows/actions/dockerhub-login@dockerhub-login-v1.0.0

- name: docker-build-and-push
run: |
TAG_ARCH="${{ needs.get-image-tag.outputs.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
Expand Down Expand Up @@ -55,7 +92,7 @@ jobs:
unit-tests:
name: Run Unit Tests
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
strategy:
matrix:
test-target:
Expand All @@ -80,7 +117,7 @@ jobs:

integration-tests:
name: Run integration tests
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
strategy:
matrix:
test-target:
Expand All @@ -105,7 +142,7 @@ jobs:

build:
name: Build
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -132,7 +169,7 @@ jobs:

benchmark:
name: Benchmark
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -147,7 +184,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
Expand All @@ -165,7 +202,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
Expand All @@ -186,7 +223,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
Expand Down

0 comments on commit 520c9e2

Please sign in to comment.