Skip to content

Commit

Permalink
Merge pull request #4 from solarwinds/tune-release
Browse files Browse the repository at this point in the history
Tune release
  • Loading branch information
jaroslav-fedor-swi authored Oct 9, 2024
2 parents 662d85b + 4c3e6fa commit 2ad593b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ name: build-and-release
run-name: Publishing a release

on:
push:
tags:
- '*.*.*'
workflow_dispatch:
inputs:
release_type:
Expand Down Expand Up @@ -36,20 +39,18 @@ on:
default: false

env:
BENV_IMAGE: quay.io/splunko11ytest/network-explorer-debug/build-env
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_REGISTRY: ${{ vars.DOCKER_REGISTRY }}
DOCKER_NAMESPACE: ${{ vars.DOCKER_NAMESPACE }}
IMAGE_PREFIX: ${{ inputs.image_prefix }}
BENV_IMAGE: public.ecr.aws/u7d6c4a3/solarwinds-opentelemetry-network:benv-exp
DOCKER_REGISTRY: docker.io
DOCKER_NAMESPACE: solarwinds
IMAGE_PREFIX: "opentelemetry-ebpf-"

jobs:
build-and-release:
name: Build and release
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
fetch-depth: 0
Expand Down Expand Up @@ -86,9 +87,8 @@ jobs:
echo "short_version_number = ${short_version_number}"
echo "full_version_number = ${full_version_number}"
echo "github_tag = ${github_tag}"
- name: Log-in to container registry
run: |
docker login --username="$DOCKER_USERNAME" --password-stdin $DOCKER_REGISTRY <<< "$DOCKER_PASSWORD"
- name: Fetch build environment
run: |
docker pull $BENV_IMAGE
Expand All @@ -112,7 +112,7 @@ jobs:
$BENV_IMAGE \
cpack -G 'RPM;DEB'
- name: Upload packages to GitHub Action artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages
path: |
Expand All @@ -128,6 +128,13 @@ jobs:
files: |
out/opentelemetry-ebpf-*.rpm
out/opentelemetry-ebpf-*.deb
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.OPENTELEMETRY_DOCKER_HUB_CI_USER }}
password: ${{ secrets.OPENTELEMETRY_DOCKER_HUB_CI_PASSWORD }}

- name: Push to container registry
run: |
cd $GITHUB_WORKSPACE/src
Expand All @@ -151,7 +158,7 @@ jobs:
images=(
reducer
kernel-collector
cloud-collector
# cloud-collector
k8s-watcher
k8s-relay
)
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
name: build-and-test
run-name: ${{ github.actor }} is running GitHub Actions
on:
push:
branches:
- main
pull_request:
paths:

env:
BENV_IMAGE: public.ecr.aws/u7d6c4a3/solarwinds-opentelemetry-network:benv-exp
Expand Down

0 comments on commit 2ad593b

Please sign in to comment.