Skip to content

fix the _build issue #7

fix the _build issue

fix the _build issue #7

Workflow file for this run

name: Build Pretalx
on:
workflow_dispatch: # allows to be run manually
push:
branches:
- 'v2026.2.1'
pull_request:
branches:
- 'v2026.2.1'
jobs:
build_and_push:
name: Build and push Docker image to NFC Harbor
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
submodules: true
- name: Docker meta
id: meta
uses: docker/metadata-action@v6
with:
images: harbor.nordicfuzzcon.com/library/pretalx
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Extract Harbor credentials
id: creds
run: |
echo "username=$(jq -r '.name' <<< '${{ secrets.HARBOR_TOKEN }}')" >> "$GITHUB_OUTPUT"
echo "password=$(jq -r '.secret' <<< '${{ secrets.HARBOR_TOKEN }}')" >> "$GITHUB_OUTPUT"
- name: Login to DockerHub
uses: docker/login-action@v4
with:
registry: harbor.nordicfuzzcon.com
username: ${{ steps.creds.outputs.username }}
password: ${{ steps.creds.outputs.password }}
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
push: true
file: k8s/Dockerfile
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: true
sbom: true
cache-from: type=gha
cache-to: type=gha,mode=max