Skip to content

Commit

Permalink
chore: plv8
Browse files Browse the repository at this point in the history
  • Loading branch information
pcnc committed Feb 13, 2024
1 parent 91a5209 commit e620530
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 4 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/package-plv8-multiversion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Package plv8 - multiversion

on:
push:
branches:
- develop
- pcnc/plv8
paths:
- ".github/workflows/package-plv8.yml"
- "Dockerfile"

env:
image: ghcr.io/supabase/plv8
permissions:
contents: read
packages: write
id-token: write

jobs:
settings:
runs-on: ubuntu-latest
outputs:
image_tag: ${{ env.image }}:${{ steps.meta.outputs.image_tag }}
steps:
- uses: actions/checkout@v3
- id: meta
run: |
plv8_release=$(grep -o 'plv8_release=.*' Dockerfile | head -1 | cut -d "=" -f 2)
postgresql_major=$(grep -o 'postgresql_major=.*' Dockerfile | head -1 | cut -d "=" -f 2)
echo "image_tag=${plv8_release}-pg${postgresql_major}" >> $GITHUB_OUTPUT
build_image:
needs: settings
strategy:
matrix:
include:
- postgresql_major: 13
postgresql_release: 13.3
- postgresql_major: 14
postgresql_release: 14.1
- postgresql_major: 15
postgresql_release: 15.1
runs-on: arm-runner
timeout-minutes: 180
outputs:
image_digest: ${{ steps.build.outputs.digest }}
steps:
- run: docker context create builders
- uses: docker/setup-buildx-action@v3
with:
endpoint: builders
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: build
uses: docker/build-push-action@v5
with:
build-args: |
postgresql_major=${{ matrix.postgresql_major }}
postgresql_release=${{ matrix.postgresql_release }}
push: true
target: plv8-deb
tags: 3.2.2-pg${{ matrix.postgresql_major }}_arm64
platforms: linux/arm64
no-cache: true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARG pg_safeupdate_release=1.4
ARG timescaledb_release=2.9.1
ARG wal2json_release=2_5
ARG pljava_release=1.6.4
ARG plv8_release=3.1.5
ARG plv8_release=3.2.2
ARG pg_plan_filter_release=5081a7b5cb890876e67d8e7486b6a64c38c9a492
ARG pg_net_release=0.7.1
ARG rum_release=1.3.13
Expand Down
4 changes: 2 additions & 2 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ supautils_release_checksum: sha256:bc2f2b6393f865e7db973630334e1ce8b561e8774e23c
pljava_release: master
pljava_release_checksum: sha256:e99b1c52f7b57f64c8986fe6ea4a6cc09d78e779c1643db060d0ac66c93be8b6

plv8_release: "3.1.5"
plv8_release_checksum: sha256:1e108d5df639e4c189e1c5bdfa2432a521c126ca89e7e5a969d46899ca7bf106
plv8_release: "3.2.2"
plv8_release_checksum: sha256:2d1491280505afcdff629191451d0891d3258dbdc483992aa7449a8517335d98

pg_plan_filter_release: 5081a7b5cb890876e67d8e7486b6a64c38c9a492

Expand Down
2 changes: 1 addition & 1 deletion common.vars.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
postgres-version = "15.1.1.15"
postgres-version = "15.1.1.16-plv8"

0 comments on commit e620530

Please sign in to comment.