Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

publish

publish #29

Workflow file for this run

name: publish
on:
workflow_dispatch:
inputs:
VERSION:
type: string
description: "Lantern Suite version to tag"
required: true
default: "12"
IMAGE_NAME:
type: string
description: "Container image name to tag"
required: true
default: "lanterndata/lantern-suite"
LANTERN_VERSION:
type: string
description: "Lantern version to build"
required: true
default: "0.2.4"
LANTERN_EXTRAS_VERSION:
type: string
description: "Lantern Extras version to build"
required: true
default: "0.1.4"
PG_CRON_VERSION:
type: string
description: "pg_cron version to build"
required: true
default: "7e91e72b1bebc5869bb900d9253cc9e92518b33f"
jobs:
docker:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- postgres: 16
- postgres: 15
- postgres: 14
- postgres: 13
- postgres: 12
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
build-args: |
PG_VERSION=${{ matrix.postgres }}
LANTERN_VERSION=${{ github.event.inputs.LANTERN_VERSION }}
LANTERN_EXTRAS_VERSION=${{ github.event.inputs.LANTERN_EXTRAS_VERSION }}
PG_CRON_VERSION=${{ github.event.inputs.PG_CRON_VERSION }}
tags: |
${{ github.event.inputs.IMAGE_NAME }}:pg${{ matrix.postgres }}-latest
${{ github.event.inputs.IMAGE_NAME }}:pg${{ matrix.postgres }}-v${{ github.event.inputs.VERSION }}