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 9029157
Showing 1 changed file with 52 additions and 8 deletions.
60 changes: 52 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -55,7 +99,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 +124,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 +149,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 +176,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 +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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9029157

Please sign in to comment.