Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
carles-grafana committed Jan 3, 2025
1 parent f25ccb1 commit 6362a33
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
release:
if: github.repository == 'grafana/tempo' # skip in forks
runs-on: ubuntu-24.04
env:
NFPM_SIGNING_KEY_FILE: /tmp/nfpm-private-key.key
steps:
- name: Checkout
uses: actions/checkout@v4

- name: fetch tags
- run: git fetch --tags
run: git fetch --tags

- id: "get-secrets"
name: "get nfpm signing keys"
Expand All @@ -32,18 +34,17 @@ jobs:
- 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: |
ls -l ./dist
docker run --name debcontainer -it --detach jrei/systemd-debian:12 /bin/sh
docker cp ./dist/tempo*_amd64.deb debcontainer:.
docker cp ./dist/tempo_*_linux_amd64.deb debcontainer:.
docker cp ./tools/packaging/wait-for-ready.sh debcontainer:.
docker exec debcontainer dpkg -i ./tempo*_amd64.deb
docker exec debcontainer dpkg -i ./dist/tempo_*_linux_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)
Expand Down

0 comments on commit 6362a33

Please sign in to comment.