-
Notifications
You must be signed in to change notification settings - Fork 2
88 lines (76 loc) · 2.29 KB
/
draft_release.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Create Draft Release
on:
push:
tags:
- "v*"
jobs:
draft_release:
name: Create Draft Release
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "^1.22"
- 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: Create Release
uses: softprops/action-gh-release@v2
with:
draft: true
files: out/*.*
# body_path: _releasenotes/${{ env.RELEASE_TAG }}.md
release_image:
name: Build and Push Release Image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "^1.22"
- 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: Extract Metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ghcr.io/telekom/das-schiff-network-operator
- name: Build and Push Docker Image
uses: docker/[email protected]
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Extract Metadata (tags, labels) for Docker
id: exporter
uses: docker/[email protected]
with:
images: ghcr.io/telekom/frr-exporter
- name: Build and Push Docker Image
uses: docker/[email protected]
with:
context: .
push: true
file: frr-exporter.Dockerfile
tags: ${{ steps.exporter.outputs.tags }}
labels: ${{ steps.exporter.outputs.labels }}