Skip to content

Commit

Permalink
Migrate release pipeline from Drone to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
carles-grafana committed Jan 3, 2025
1 parent 3f15571 commit eeda660
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: release
on:
push:
tags:
- 'v*'

# Needed to login to DockerHub
permissions:
contents: read
id-token: write

jobs:

asdf:
# This job deploys the latest main commit to the dev environment
if: github.repository == 'grafana/tempo' && github.ref == 'refs/heads/main'
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: true

- name: test release
run: make release-snapshot
env:
NFPM_DEFAULT_PASSPHRASE:
from_secret: gpg_passphrase
NFPM_SIGNING_KEY_FILE: /drone/src/private-key.key

get-tag:
if: github.repository == 'grafana/tempo' # skip in forks
runs-on: ubuntu-24.04
container:
image: jrei/systemd-debian:12
env:
NODE_ENV: development
ports:
- 80
volumes:
- my_docker_volume:/volume_mount
options: --cpus 1
steps:
- name: verify deb install
run: |
set -x
# Install tempo and check it's running
dpkg -i ${dir}/dist/tempo*_amd64.deb
[ "\$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1)
# Wait for tempo to be ready.
apt update && apt install -y curl
./tools/packaging/wait-for-ready.sh
centos:
if: github.repository == 'grafana/tempo' # skip in forks
runs-on: ubuntu-24.04
container:
image: jrei/systemd-centos:8
env:
NODE_ENV: development
ports:
- 80
volumes:
- my_docker_volume:/volume_mount
options: --cpus 1
steps:
- name: verify rpm install
run: |
set -x
# Import the Grafana GPG key
rpm --import https://packages.grafana.com/gpg.key

# Install tempo and check it's running
rpm -i ./dist/tempo*_amd64.rpm
[ "\$(systemctl is-active tempo)" = "active" ] || (echo "tempo is inactive" && exit 1)

# Wait for tempo to be ready.
./tools/packaging/wait-for-ready.sh

0 comments on commit eeda660

Please sign in to comment.