49 lines
1 KiB
YAML
49 lines
1 KiB
YAML
name: Build custom umami
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: docker
|
|
# container:
|
|
# image: 'Dockerfile'
|
|
# environment:
|
|
# DOCKER_HOST: tcp://forgejo_docker-in-docker:2375
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: watson/umami
|
|
path: umami
|
|
ref: master
|
|
|
|
- name: Set up Docker
|
|
uses: https://git.octubre.be/watson/setup-docker-action@v4
|
|
|
|
- name: Test
|
|
run: docker version && pwd
|
|
|
|
|
|
- name: Login to image registry
|
|
uses: docker/login-action@master
|
|
with:
|
|
registry: git.octubre.be
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push image
|
|
uses: docker/build-push-action@master
|
|
with:
|
|
context: .
|
|
file: Dockerfile
|
|
push: true
|
|
tags: 'latest'
|
|
buildArgs: |
|
|
DATABASE_TYPE=postgresql
|
|
BASE_PATH=/stats
|
|
|
|
|
|
|