Skip to content

Commit

Permalink
Add release based on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslav-fedor-swi committed Oct 8, 2024
1 parent 3d272fe commit 633445f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 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 @@ -37,11 +40,9 @@ on:

env:
BENV_IMAGE: quay.io/splunko11ytest/network-explorer-debug/build-env
DOCKER_USERNAME: ${{ secrets.DOCKER_HUB_CI_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_HUB_CI_PASSWORD }}
DOCKER_REGISTRY: docker.io
DOCKER_NAMESPACE: solarwinds
IMAGE_PREFIX: ${{ inputs.image_prefix }}
IMAGE_PREFIX: "opentelemetry-ebpf-"

jobs:
build-and-release:
Expand Down Expand Up @@ -86,9 +87,12 @@ 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: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_CI_USER }}
password: ${{ secrets.DOCKER_HUB_CI_PASSWORD }}
- name: Fetch build environment
run: |
docker pull $BENV_IMAGE
Expand Down

0 comments on commit 633445f

Please sign in to comment.