Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netobserv-ebpf-agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
netobserv-ebpf-agent
Commits
87b7b14f
Commit
87b7b14f
authored
3 years ago
by
Joel Takvorian
Browse files
Options
Downloads
Patches
Plain Diff
Add release action
parent
b6c7a34c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/release.yml
+57
-0
57 additions, 0 deletions
.github/workflows/release.yml
with
57 additions
and
0 deletions
.github/workflows/release.yml
0 → 100644
+
57
−
0
View file @
87b7b14f
name
:
release to quay.io
on
:
push
:
tags
:
[
v*
]
env
:
REGISTRY_USER
:
netobserv+github_ci
REGISTRY_PASSWORD
:
${{ secrets.QUAY_SECRET }}
REGISTRY
:
quay.io/netobserv
IMAGE
:
netobserv-ebpf-agent
IMAGE_ORG
:
netobserv
jobs
:
push-image
:
name
:
push image
runs-on
:
ubuntu-20.04
strategy
:
matrix
:
go
:
[
'
1.17'
]
steps
:
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
validate tag
id
:
validate_tag
run
:
|
tag=`git describe --exact-match --tags 2> /dev/null`
if [[ $tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$ ]]; then
echo "$tag is a valid release tag"
set -e
echo "::set-output name=tag::$tag"
else
echo "$tag is NOT a valid release tag"
exit 1
fi
-
name
:
install make
run
:
sudo apt-get install make
-
name
:
set up go 1.x
uses
:
actions/setup-go@v2
with
:
go-version
:
${{ matrix.go }}
-
name
:
build images
run
:
SW_VERSION="${{ steps.validate_tag.outputs.tag }}" make image-build
-
name
:
podman login to quay.io
uses
:
redhat-actions/podman-login@v1
with
:
username
:
${{ env.REGISTRY_USER }}
password
:
${{ env.REGISTRY_PASSWORD }}
registry
:
quay.io
-
name
:
push to quay.io
id
:
push-to-quay
uses
:
redhat-actions/push-to-registry@v2
with
:
image
:
${{ env.IMAGE }}
tags
:
${{ steps.validate_tag.outputs.tag }}
registry
:
${{ env.REGISTRY }}
-
name
:
print image url
run
:
echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment