umami-custom/.forgejo/workflows/umami.yml
watson 1cf19f68e2
Some checks failed
Build custom umami / Build (push) Failing after 19m44s
Update .forgejo/workflows/umami.yml
2025-08-25 18:58:06 +02:00

64 lines
1.8 KiB
YAML

name: Build custom umami
on:
push:
branches: [main]
jobs:
Build:
runs-on: docker
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
repository: watson/umami
path: umami
ref: master
- name: Set up Docker
run: |
apt-get update
apt-get install -y ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- name: Run Docker commands
env:
DOCKER_HOST: tcp://forgejo_docker-in-docker:2375
run: |
docker version
pwd
ls -a
- 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
env:
DOCKER_HOST: tcp://forgejo_docker-in-docker:2375
uses: docker/build-push-action@v6
with:
context: umami/
push: true
tags: 'latest'
build-args: |
DATABASE_TYPE=postgresql
BASE_PATH=/stats