Create docker images (manual) #18
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: Create docker images (manual) | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
type: string | ||
description: Version | ||
required: true | ||
env: | ||
# set Docker OCI Labels | ||
DOCKER_LABELS: > | ||
org.opencontainers.image.title=${{github.event.repository.name}}, | ||
org.opencontainers.image.description="Umami is a simple, fast, privacy-focused alternative to Google Analytics", | ||
org.opencontainers.image.vendor=${{github.repository_owner}}, | ||
org.opencontainers.image.licenses="MIT", | ||
org.opencontainers.image.version=${{github.ref_name}}, | ||
org.opencontainers.image.source=${{github.server_url}}/${{github.repository}}, | ||
org.opencontainers.image.revision=${{github.sha}}, | ||
org.opencontainers.image.url="https://umami.is/", | ||
org.opencontainers.image.documentation="https://umami.is/docs", | ||
org.opencontainers.image.base.name="docker.io/library/node:18-alpine" | ||
jobs: | ||
build: | ||
name: Build, push, and deploy | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
db-type: [postgresql, mysql] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: mr-smithers-excellent/docker-build-push@v6 | ||
name: Build & push Docker image to ghcr.io for ${{ matrix.db-type }} | ||
with: | ||
image: umami | ||
tags: ${{ matrix.db-type }}-${{ inputs.version }}, ${{ matrix.db-type }}-latest | ||
labels: ${{ DOCKER_LABELS }} | ||
Check failure on line 42 in .github/workflows/cd-manual.yml GitHub Actions / Create docker images (manual)Invalid workflow file
|
||
buildArgs: DATABASE_TYPE=${{ matrix.db-type }} | ||
registry: ghcr.io | ||
multiPlatform: true | ||
platform: linux/amd64,linux/arm64 | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: mr-smithers-excellent/docker-build-push@v6 | ||
name: Build & push Docker image to docker.io for ${{ matrix.db-type }} | ||
with: | ||
image: umamisoftware/umami | ||
tags: ${{ matrix.db-type }}-${{ inputs.version }}, ${{ matrix.db-type }}-latest | ||
buildArgs: DATABASE_TYPE=${{ matrix.db-type }} | ||
registry: docker.io | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} |