Skip to content
Snippets Groups Projects
Commit 33bd2536 authored by Lars Seipel's avatar Lars Seipel
Browse files

build in GitLab CI/CD

parent e3089669
Branches cicd
No related tags found
No related merge requests found
Pipeline #264966 passed
stages:
- build
- upload
build:
stage: build
variables:
os: linux
arch: amd64
image: docker.io/golang:1.24
before_script:
- go mod download
script:
- |
GOOS=$os GOARCH=$arch make compile
artifacts:
when: on_success
expire_in: 1 days
paths:
- $CI_PROJECT_DIR/bin/netobserv-ebpf-agent
include:
- component: $CI_SERVER_FQDN/its/templates-and-utilities/gitlab-ci-components/upload-generic-package/upload-generic-package@1
inputs:
component-version: "1"
package-name: netobserv-ebpf-agent
package-version: latest
package-files:
- $CI_PROJECT_DIR/bin/netobserv-ebpf-agent
upload-generic-package:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
needs:
- build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment