Skip to content

Merge pull request #69 from telekom/fix/community-passing #55

Merge pull request #69 from telekom/fix/community-passing

Merge pull request #69 from telekom/fix/community-passing #55

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@v4
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/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
push: true
tags: ghcr.io/telekom/das-schiff-network-operator:main
- name: Build and push sidecar Docker image
uses: docker/[email protected]
with:
context: .
file: frr-exporter.Dockerfile
push: true
tags: ghcr.io/telekom/frr-exporter:main