-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.23 KB
/
container-image.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: container-image
on:
push:
branches:
- main
jobs:
main-image:
name: build "main" image
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "^1.19"
- name: Install packages
run: sudo apt-get update && sudo apt-get install -y llvm clang libbpf-dev gcc-multilib linux-headers-$(uname -r)
- name: Build
run: |
make build
- name: Create Licenses Report
run: |
make licenses-report
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5.1.0
with:
context: .
push: true
tags: ghcr.io/telekom/das-schiff-network-operator:main
- name: Build and push sidecar Docker image
uses: docker/build-push-action@v5.1.0
with:
context: .
file: frr-exporter.Dockerfile
push: true
tags: ghcr.io/telekom/frr-exporter:main