-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate release pipeline from Drone to GHA
- Loading branch information
1 parent
360d183
commit 090b6c6
Showing
1 changed file
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |