Skip to content

Build and Push Docker Image of PostgreSQL with pg_bigm #4

Build and Push Docker Image of PostgreSQL with pg_bigm

Build and Push Docker Image of PostgreSQL with pg_bigm #4

Workflow file for this run

name: Build and Push Docker Image of PostgreSQL with pg_bigm
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
env:
IMAGE_NAME: postgres_bigm
IMAGE_TAG: 12-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}