2022-03-22 15:03:55 +01:00
|
|
|
name: Create docker images
|
|
|
|
|
2022-06-24 11:27:08 +02:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
version:
|
|
|
|
type: string
|
|
|
|
description: Version
|
|
|
|
required: true
|
2022-06-24 18:05:15 +02:00
|
|
|
add-latest:
|
|
|
|
type: boolean
|
|
|
|
description: Add latest tag
|
|
|
|
required: false
|
2022-03-22 15:03:55 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build, push, and deploy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
db-type: [postgresql, mysql]
|
|
|
|
|
|
|
|
steps:
|
2022-06-24 11:27:08 +02:00
|
|
|
- uses: actions/checkout@v2
|
2022-03-22 15:03:55 +01:00
|
|
|
|
2022-06-24 11:27:08 +02:00
|
|
|
- uses: mr-smithers-excellent/docker-build-push@v5
|
|
|
|
name: Build & push Docker image for ${{ matrix.db-type }}
|
|
|
|
with:
|
|
|
|
image: umami
|
2022-06-24 11:29:10 +02:00
|
|
|
tags: ${{ matrix.db-type }}-${{ inputs.version }}
|
2022-06-24 18:05:15 +02:00
|
|
|
addLatest: ${{ inputs.add-latest }}
|
2022-06-24 11:27:08 +02:00
|
|
|
buildArgs: DATABASE_TYPE=${{ matrix.db-type }}
|
|
|
|
registry: ghcr.io/${{ github.actor }}
|
|
|
|
username: ${{ github.actor }}
|
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|