Skip to content

postgresql image

postgresql image #2

Workflow file for this run

---
name: postgresql image
on:
push:
branches:
- main
paths:
- "postgresql/**"
- ".github/workflows/postgresql.yaml"
workflow_dispatch:
env:
REGISTRY: "ghcr.io"
NAMESPACE: "mskarbek"
IMAGE_NAME: "postgresql"
VERSION: "18.1"
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v5
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ env.VERSION }}
- id: push
uses: docker/build-push-action@v5
with:
context: ./postgresql/
file: ./postgresql/Containerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}