Skip to content

test

test #10087

Workflow file for this run

name: CI
on:
pull_request:
# Requiring certain checks for PRs to be merge-able in Github, forces for those checks to be *always* run.
# Even if the changes do not require them (i.e. the paths indicated below). That's why `paths-ignore` is commented out.
#
# paths-ignore:
# - 'docs/**'
# - 'example/**'
# - 'tools/**'
concurrency:
# Cancel any running workflow for the same branch when new commits are pushed.
# We group both by ref_name (available when CI is triggered by a push to a branch/tag)
# and head_ref (available when CI is triggered by a PR).
group: "${{ github.ref_name }}-${{ github.head_ref }}"
cancel-in-progress: true
jobs:
release:
if: github.repository == 'grafana/tempo' # skip in forks
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: fetch tags
- run: git fetch --tags
- id: "get-secrets"
name: "get nfpm signing keys"
uses: "grafana/shared-workflows/actions/get-vault-secrets@main"
with:
common_secrets: |
NFPM_SIGNING_KEY=packages-gpg:private-key
NFPM_DEFAULT_PASSPHRASE=packages-gpg:passphrase
- name: write-key
run: printf "%s" "$NFPM_SIGNING_KEY" > $NFPM_SIGNING_KEY_FILE
env:
NFPM_SIGNING_KEY_FILE: /tmp/nfpm-private-key.key
- name: test release
run: make release-snapshot
- name: test deb package
run: |
docker run --name debcontainer -it --detach jrei/systemd-debian:12 /bin/sh
docker cp ./dist/tempo*_amd64.deb debcontainer:.
docker cp ./tools/packaging/wait-for-ready.sh debcontainer:.
docker exec debcontainer dpkg -i ./tempo*_amd64.deb
docker exec debcontainer [ "$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1)
docker exec debcontainer apt update && apt install -y curl
docker exec debcontainer ./wait-for-ready.sh)
- name: test rpm package
run: |
docker run --name rpmcontainer -it --detach jrei/systemd-centos:8 /bin/sh
docker cp ./dist/tempo*_amd64.rpm rpmcontainer:.
docker cp ./tools/packaging/wait-for-ready.sh rpmcontainer:.
docker exec rpmcontainer rpm --import https://packages.grafana.com/gpg.key
docker exec rpmcontainer rpm -i ./tempo*_amd64.rpm
docker exec rpmcontainer [ "$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1)
docker exec rpmcontainer apt update && apt install -y curl
docker exec rpmcontainer ./wait-for-ready.sh)