umami/.github/workflows/cd-manual.yml

32 lines
775 B
YAML
Raw Normal View History

2022-06-28 00:50:24 +02:00
name: Create docker images (manual)
2022-06-27 11:01:15 +02:00
on:
workflow_dispatch:
inputs:
version:
type: string
description: Version
required: true
jobs:
build:
name: Build, push, and deploy
runs-on: ubuntu-latest
strategy:
matrix:
db-type: [postgresql, mysql]
steps:
- uses: actions/checkout@v2
- uses: mr-smithers-excellent/docker-build-push@v5
name: Build & push Docker image for ${{ matrix.db-type }}
with:
image: umami
2022-06-28 00:50:24 +02:00
tags: ${{ matrix.db-type }}-${{ inputs.version }}, ${{ matrix.db-type }}-latest
2022-06-27 11:01:15 +02:00
buildArgs: DATABASE_TYPE=${{ matrix.db-type }}
2022-06-30 19:31:01 +02:00
registry: ghcr.io
2022-06-30 10:51:53 +02:00
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}