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

29 lines
735 B
YAML
Raw Normal View History

2024-08-28 07:53:28 +02:00
name: Create docker images
on:
push:
branches:
- analytics
jobs:
build:
name: Build, push, and deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate random hash
id: random_hash
run: echo "hash=$(openssl rand -hex 4)" >> $GITHUB_OUTPUT
- uses: mr-smithers-excellent/docker-build-push@v6
2024-09-03 06:17:08 +02:00
name: Build & push Docker image to docker.io
2024-08-28 07:53:28 +02:00
with:
2024-09-03 06:17:08 +02:00
image: umamisoftware/umami
2024-08-28 07:53:28 +02:00
tags: cloud-${{ steps.random_hash.outputs.hash }}, cloud-latest
buildArgs: DATABASE_TYPE=postgresql
2024-09-03 06:17:08 +02:00
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}