Skip to content

Build pgrx Image

Build pgrx Image #16

Workflow file for this run

name: Build pgrx Image
on:
workflow_dispatch:
inputs:
version:
description: 'pgrx version'
required: true
type: string
toolchain:
description: 'additional rust toolchain'
required: true
type: string
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
IMAGE_NAME: "ghcr.io/tensorchord/vectorchord-pgrx"
permissions:
contents: write
packages: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/pgrx.Dockerfile
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: "linux/amd64,linux/arm64"
build-args: |
PGRX_VERSION=${{ github.event.inputs.version }}
RUST_TOOLCHAIN=${{ github.event.inputs.toolchain }}
tags: ${{ env.IMAGE_NAME }}:${{ github.event.inputs.version }}-${{ github.event.inputs.toolchain }}