Skip to content

Build and Push Container #36

Build and Push Container

Build and Push Container #36

Workflow file for this run

name: Build and Push Container
on:
workflow_dispatch:
inputs:
version:
description: "Set the postgres version to release."
type: string
permissions:
contents: read
packages: write
id-token: write
pull-requests: write
jobs:
push-postgres:
name: Opensight Postgres
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and Push
id: build-and-push
uses: greenbone/actions/container-build-push-generic@main
with:
build-args: "POSTGRES_VERSION=${{ inputs.version }}"
cosign-key: ${{ secrets.COSIGN_KEY_OPENSIGHT }}
cosign-key-password: ${{ secrets.COSIGN_KEY_PASSWORD_OPENSIGHT }}
cosign-tlog-upload: "false"
image-url: ${{ github.repository }}
image-labels: |
org.opencontainers.image.vendor=Greenbone
org.opencontainers.image.base.name=postgres
image-tags: |
type=raw,value=${{ inputs.version }}
registry: ${{ vars.IMAGE_REGISTRY }}
registry-username: ${{ github.actor }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
- name: Image digest to summary
run: |
echo 'Digest: ${{ steps.build-and-push.outputs.digest }}' >> $GITHUB_STEP_SUMMARY