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

publish

publish #55

Workflow file for this run

name: publish
on:
push:
branches:
- main
workflow_dispatch:
inputs:
VERSION:
type: string
description: "Image Version"
required: true
default: "0.2.5"
LANTERN_VERSION:
type: string
description: "Lantern Version"
required: true
default: "0.3.4"
env:
VERSION: ${{ github.event.inputs.VERSION || '0.2.5' }}
LANTERN_VERSION: ${{ github.event.inputs.LANTERN_VERSION || '0.3.4' }}
IMAGE_NAME: "lanterndata/lantern-suite"
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=${{ env.LANTERN_VERSION }}
tags: |
${{ env.IMAGE_NAME }}:pg${{ matrix.postgres }}-latest
${{ env.IMAGE_NAME }}:pg${{ matrix.postgres }}-v${{ env.VERSION }}