Skip to content

use root ref instead of context ref #98

use root ref instead of context ref

use root ref instead of context ref #98

Workflow file for this run

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 }}