mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
🚧 WIP: docker-compose + github action
This commit is contained in:
parent
f7ff90e93e
commit
78bc17ce3b
3 changed files with 30 additions and 0 deletions
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
|
|
@ -40,3 +40,22 @@ jobs:
|
||||||
docker push ghcr.io/$GITHUB_ACTOR/umami:postgresql-latest
|
docker push ghcr.io/$GITHUB_ACTOR/umami:postgresql-latest
|
||||||
docker push ghcr.io/$GITHUB_ACTOR/umami:mysql-$(echo $GITHUB_SHA | head -c7)
|
docker push ghcr.io/$GITHUB_ACTOR/umami:mysql-$(echo $GITHUB_SHA | head -c7)
|
||||||
docker push ghcr.io/$GITHUB_ACTOR/umami:mysql-latest
|
docker push ghcr.io/$GITHUB_ACTOR/umami:mysql-latest
|
||||||
|
#
|
||||||
|
- name: Build sqlite container image
|
||||||
|
run: |
|
||||||
|
docker build --build-arg DATABASE_TYPE=sqlite \
|
||||||
|
--tag ghcr.io/$GITHUB_ACTOR/umami:sqlite-$(echo $GITHUB_SHA | head -c7) \
|
||||||
|
--tag ghcr.io/$GITHUB_ACTOR/umami:sqlite-latest \
|
||||||
|
.
|
||||||
|
|
||||||
|
- name: Docker login
|
||||||
|
run: >-
|
||||||
|
echo "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
| docker login -u "${{ github.actor }}" --password-stdin ghcr.io
|
||||||
|
|
||||||
|
- name: Push image to GitHub
|
||||||
|
run: |
|
||||||
|
docker push ghcr.io/$GITHUB_ACTOR/umami:sqlite-$(echo $GITHUB_SHA | head -c7)
|
||||||
|
docker push ghcr.io/$GITHUB_ACTOR/umami:sqlite-latest
|
||||||
|
docker push ghcr.io/$GITHUB_ACTOR/umami:mysql-$(echo $GITHUB_SHA | head -c7)
|
||||||
|
docker push ghcr.io/$GITHUB_ACTOR/umami:mysql-latest
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -37,3 +37,4 @@ yarn-error.log*
|
||||||
.env.development.local
|
.env.development.local
|
||||||
.env.test.local
|
.env.test.local
|
||||||
.env.production.local
|
.env.production.local
|
||||||
|
prisma/db
|
||||||
|
|
|
||||||
10
docker-compose-sqlite.yml
Normal file
10
docker-compose-sqlite.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
umami:
|
||||||
|
image: ghcr.io/mikecao/umami:sqlite-latest
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
environment:
|
||||||
|
DATABASE_TYPE: sqlite
|
||||||
|
HASH_SALT: replace-me-with-a-random-string
|
||||||
|
restart: always
|
||||||
Loading…
Add table
Add a link
Reference in a new issue