This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
publish #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
workflow_dispatch: | |
inputs: | |
VERSION: | |
type: string | |
description: "Lantern Suite version to tag" | |
required: true | |
default: "8" | |
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.0" | |
LANTERN_EXTRAS_VERSION: | |
type: string | |
description: "Lantern Extras version to build" | |
required: true | |
default: "0.1.4" | |
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 }} | |
tags: | | |
${{ github.event.inputs.IMAGE_NAME }}:pg${{ matrix.postgres }}-latest | |
${{ github.event.inputs.IMAGE_NAME }}:pg${{ matrix.postgres }}-v${{ github.event.inputs.VERSION }} |