| 1 |
name: Build and Push to Greenbone Registry |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ main ] |
| 6 |
tags: ["v*"] |
| 7 |
pull_request: |
| 8 |
branches: [ main ] |
| 9 |
workflow_dispatch: |
| 10 |
inputs: |
| 11 |
ref-name: |
| 12 |
type: string |
| 13 |
description: "The ref to build a container image from. For example a tag v23.0.0." |
| 14 |
required: true |
| 15 |
|
| 16 |
jobs: |
| 17 |
push: |
| 18 |
name: Build and push to self-hosted harbor |
| 19 |
uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main |
| 20 |
with: |
| 21 |
build-docker-file: .docker/Dockerfile |
| 22 |
image-labels: | |
| 23 |
org.opencontainers.image.vendor=Greenbone |
| 24 |
org.opencontainers.image.documentation=https://greenbone.github.io/docs/ |
| 25 |
org.opencontainers.image.base.name=debian:stable-slim |
| 26 |
image-url: community/greenbone-feed-sync |
| 27 |
ref-name: ${{ inputs.ref-name }} |
| 28 |
service: greenbone-feed-sync |
| 29 |
secrets: inherit |
| 30 |
permissions: |
| 31 |
pull-requests: write |