Skip to content

Commit

Permalink
Add: Push to self-hosted registry workflow for image
Browse files Browse the repository at this point in the history
  • Loading branch information
y0urself authored and greenbonebot committed Sep 3, 2024
1 parent 734973f commit 8f4b98d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and Push to Greenbone Registry

on:
push:
branches: [ main ]
tags: ["v*"]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
ref-name:
type: string
description: "The ref to build a container image from. For example a tag v23.0.0."
required: true

jobs:
push:
name: Build and push to self-hosted harbor
uses: greenbone/workflows/.github/workflows/container-build-push-2nd-gen.yml@main
with:
image-labels: |
org.opencontainers.image.vendor=Greenbone
org.opencontainers.image.documentation=https://greenbone.github.io/docs/
org.opencontainers.image.base.name=debian:stable-slim
image-url: community/greenbone-feed-sync
ref-name: ${{ inputs.ref-name }}
secrets: inherit

0 comments on commit 8f4b98d

Please sign in to comment.