Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn KitchenOwl into a monorepo #356

Merged
merged 499 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
499 commits
Select commit Hold shift + click to select a range
9c5057f
l10n: Update localization
TomBursch Jan 12, 2023
5a8603a
l10n: Update localization
TomBursch Jan 12, 2023
c153571
fix: localization duplicate key
TomBursch Jan 15, 2023
e7ba8de
fix: import with duplicate item names
TomBursch Jan 15, 2023
8ece049
feat: Custom DB support
TomBursch Jan 15, 2023
12e907e
chore: upgrade requirements
TomBursch Jan 15, 2023
fffc471
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Jan 15, 2023
9cdab11
feat: Add languages
TomBursch Jan 15, 2023
0fb0c42
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Feb 1, 2023
77f8b4d
feat: Add Indonesian and Russian
TomBursch Feb 1, 2023
d6069e1
fix: bugs and upgrade dependencies
TomBursch Feb 1, 2023
c46f8e8
Prepare release 56
TomBursch Feb 1, 2023
1b6540a
chore(deps): bump werkzeug from 2.2.2 to 2.2.3 (TomBursch/kitchenowl-…
dependabot[bot] Feb 21, 2023
4c17be1
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Mar 2, 2023
aecb344
fix: Amended a spelling error in "Chili Pepper" (TomBursch/kitchenowl…
BenDundon Mar 2, 2023
c38efe5
l10n: update and fix
TomBursch Mar 2, 2023
bd5a72d
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Mar 2, 2023
4ede6a5
chore: upgrade requirements
TomBursch Mar 3, 2023
ccd85cd
feat: Refactor meal planner and add planned yields
TomBursch Mar 6, 2023
cde0e15
feat: add item icons
TomBursch Mar 6, 2023
ecf5c7a
fix: item icon API
TomBursch Mar 6, 2023
c293dbe
feat: add management scripts
TomBursch Mar 7, 2023
0a91840
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Apr 5, 2023
87db9b8
feat: Multiple households (TomBursch/kitchenowl-backend#25)
TomBursch Apr 5, 2023
57e7665
chore: upgrade requirements
TomBursch Apr 5, 2023
3b2fd1d
fix: migration
TomBursch Apr 5, 2023
9b28ca2
fix: planner issues
TomBursch Apr 12, 2023
a8f1d0e
fix: user issues
TomBursch Apr 14, 2023
ba59be3
feat: parameterize recent items limit
TomBursch Apr 14, 2023
9b81830
feat: parse scraped ingredients (TomBursch/kitchenowl-backend#26)
TomBursch Apr 15, 2023
b76a1e0
fix: for rootless docker
TomBursch Apr 15, 2023
41c4bb4
fix: increase max recent items count
TomBursch Apr 16, 2023
013ee3f
fix: recipe scrape endpoint
TomBursch Apr 16, 2023
e8188d2
fix: scrape access control
TomBursch Apr 16, 2023
0365bf8
feat: filter expenses
TomBursch Apr 18, 2023
1c23acc
fix: filter expenses
TomBursch Apr 18, 2023
6390dd6
feat: image access restrictions
TomBursch Apr 20, 2023
b47891a
feat: different expense overview time frames
TomBursch Apr 20, 2023
a13b7a7
Translated using Weblate (Spanish) (TomBursch/kitchenowl-backend#27)
weblate Apr 21, 2023
219cc3c
Prepare beta 57
TomBursch Apr 21, 2023
f4f8085
fix: recipe search
TomBursch Apr 21, 2023
9aeb229
fix: debug for web
TomBursch Apr 21, 2023
686b653
feat: add health-check
TomBursch Apr 25, 2023
753ec11
fix: image gets removed by editing
TomBursch Apr 27, 2023
a0a71bb
Prepare beta 58
TomBursch Apr 27, 2023
9350b57
fix: bug failed to add recipe with new items (TomBursch/kitchenowl-ba…
TomBursch May 2, 2023
37174fd
chore: upgrade requirements
TomBursch May 2, 2023
8af793d
feat: Update export & import
TomBursch May 4, 2023
96bf83c
Fix: update error messages
TomBursch May 4, 2023
57dc4bf
refactor: file access and import
TomBursch May 5, 2023
544374b
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate May 5, 2023
0274081
feat: add languages
TomBursch May 5, 2023
077cfc8
Prepare beta 59
TomBursch May 5, 2023
6ae1954
fix: fail to import recipe image (TomBursch/kitchenowl-backend#31)
TomBursch May 8, 2023
8af1f0d
fix: add PostgreSQL plugin
TomBursch May 9, 2023
ae4be6a
fix: Flask-Migrate repository
TomBursch May 9, 2023
372175e
fix: PostgreSQL migration
TomBursch May 9, 2023
c58695a
Prepare release 60
TomBursch May 10, 2023
bce30c4
fix: manage user script
TomBursch May 10, 2023
61bd59d
fix: suggestion calculation
TomBursch May 11, 2023
b05a148
Prepare release 61
TomBursch May 11, 2023
91fd739
fix: remove print statement
TomBursch May 11, 2023
188cfac
feat: add features to manage script
TomBursch May 12, 2023
01745d3
Prepare release 62
TomBursch May 12, 2023
76c7675
fix: migration of user admin
TomBursch May 15, 2023
d1d37b0
fix: no admin for existing instances
TomBursch May 15, 2023
b67aa89
Prepare release 63
TomBursch May 15, 2023
a8939e6
feat: make health endpoint return privacy policy
TomBursch May 23, 2023
a02b54d
chore(deps): bump requests from 2.30.0 to 2.31.0 (TomBursch/kitchenow…
dependabot[bot] May 23, 2023
4669c1d
chore: upgrade requirements
TomBursch May 23, 2023
027914b
feat: Allow optional public user signup (TomBursch/kitchenowl-backend…
TomBursch May 23, 2023
6815548
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate May 23, 2023
2b314bf
feat: Add polish
TomBursch May 23, 2023
b52f01c
Prepare release 64
TomBursch May 23, 2023
8d71bbd
feat: user email
TomBursch May 27, 2023
3c69121
fix: delete shopping list (TomBursch/kitchenowl-backend#35)
TomBursch May 28, 2023
a580ce2
fix: update signup return messages
TomBursch May 28, 2023
9d501ac
Prepare release 65
TomBursch May 30, 2023
d945778
fix: migration of c058421705ec (TomBursch/kitchenowl-backend#37)
TomBursch May 31, 2023
02d8360
Prepare release 66
TomBursch May 31, 2023
5822888
fix: reorder entrypoint commands
TomBursch May 31, 2023
a16ba7d
fix: delete user and file access
TomBursch Jun 5, 2023
8e6f7c0
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Jun 5, 2023
701adb1
feat: Add dutch
TomBursch Jun 5, 2023
a8f8f35
Prepare release 67
TomBursch Jun 5, 2023
808bd87
fix: recipe suggestion and expense category color
TomBursch Jun 7, 2023
4ed1f63
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Jun 7, 2023
3b7c579
Translated using Weblate (Italian) (TomBursch/kitchenowl-backend#39)
weblate Jun 7, 2023
5ac9711
feat: Add Italian
TomBursch Jun 7, 2023
28784ca
Prepare release 68
TomBursch Jun 7, 2023
165291c
feat: add local analytics
TomBursch Jun 9, 2023
cb972ea
fix: improve token deletion
TomBursch Jun 9, 2023
e8ca033
feat: split item search query
TomBursch Jun 10, 2023
fe0a163
feat: Add members on account creation
TomBursch Jun 11, 2023
2b58439
chore: upgrade requirements
TomBursch Jul 2, 2023
c4c06e0
feat: store user who added shopping list item
TomBursch Jul 2, 2023
7144112
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Jul 2, 2023
f3554d2
feat: add Greek & Finnish
TomBursch Jul 2, 2023
31e1f49
Prepare release 69
TomBursch Jul 2, 2023
9602b21
fix: container
TomBursch Jul 2, 2023
58a13d5
Prepare release 70
TomBursch Jul 2, 2023
08385d2
fix: PostgreSQL query errors
TomBursch Jul 2, 2023
01fe0fa
Prepare release 71
TomBursch Jul 2, 2023
f100ab1
fix: 193 database corruption (TomBursch/kitchenowl-backend#42)
TomBursch Jul 4, 2023
1169727
Prepare release 72
TomBursch Jul 4, 2023
bf32fdc
fix: 193 (TomBursch/kitchenowl-backend#43)
TomBursch Jul 10, 2023
e62b635
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Jul 10, 2023
887b416
feat: Add Turkish and Simplified Chinese
TomBursch Jul 10, 2023
5a59e6b
Prepare release 73
TomBursch Jul 10, 2023
945f583
chore: upgrade requirements
TomBursch Jul 19, 2023
2e68685
Prepare release 74
TomBursch Jul 19, 2023
eb9edef
feat: add shopping list remove multiple items endpoint
TomBursch Jul 30, 2023
008e063
chore: upgrade requirements
TomBursch Jul 30, 2023
fe868f0
lang: Add new items
TomBursch Aug 1, 2023
8147dcd
feat: improve default item/categories handling
TomBursch Aug 1, 2023
67445d7
feat: support item & category merging
TomBursch Aug 3, 2023
51ccfca
chore: upgrade requirements
TomBursch Aug 3, 2023
dd216c9
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Aug 3, 2023
d790095
Prepare release 75
TomBursch Aug 3, 2023
de7882a
feat: Add socket.io
TomBursch Aug 17, 2023
8667925
fix: Improve socket.io API
TomBursch Aug 17, 2023
5ad8804
docs: update example docker-compose
TomBursch Aug 17, 2023
c5caac0
chore: upgrade requirements
TomBursch Aug 20, 2023
f545d9e
chore: upgrade requirements
TomBursch Aug 23, 2023
4fc4c91
fix: dockerfile
TomBursch Aug 23, 2023
4c60c93
fix: Healthcheck
TomBursch Aug 23, 2023
5258989
fix: dockerfile
TomBursch Aug 23, 2023
3a0580a
fix: Dockerfile CMD
TomBursch Aug 24, 2023
e0295df
chore: cleanup an improved debugging
TomBursch Aug 27, 2023
f69276e
fix: revert add eventlet for debugging
TomBursch Aug 28, 2023
5181794
feat: Add Prometheus metrics
TomBursch Aug 29, 2023
1c0e84f
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Aug 29, 2023
5549c91
feat: Add Czech
TomBursch Aug 29, 2023
7d5227f
fix: return full recipe on creation and update
TomBursch Aug 30, 2023
e07e0b3
feat: Add image blurhash
TomBursch Aug 31, 2023
b9a112d
fix: migrate recipe scraper
TomBursch Aug 31, 2023
88c80f9
Translations update from Hosted Weblate (TomBursch/kitchenowl-backend…
weblate Sep 1, 2023
25abfa3
feat: improve default items
TomBursch Sep 1, 2023
3bebcad
chore: upgrade requirements
TomBursch Sep 3, 2023
0632e54
Prepare release 76
TomBursch Sep 4, 2023
cf955d2
fix: improve upgrade robustness
TomBursch Sep 4, 2023
fac955a
fix: print household upgrade progress
TomBursch Sep 4, 2023
c63a10a
fix: Metrics group by endpoint
TomBursch Sep 7, 2023
eda2f68
chore: upgrade requirements
TomBursch Sep 7, 2023
fc73eae
chore: upgrade requirements
TomBursch Sep 14, 2023
e7d1095
fix: Rename item and error on update description (TomBursch/kitchenow…
TomBursch Sep 15, 2023
7ff924b
Translated using Weblate (Czech) (TomBursch/kitchenowl-backend#49)
weblate Sep 15, 2023
a67386b
Prepare release 77
TomBursch Sep 15, 2023
b3f4349
chore: upgrade requirements
TomBursch Oct 3, 2023
610e18c
fix: PostgreSQL Migration on empty DB (TomBursch/kitchenowl-backend#52)
TomBursch Oct 3, 2023
5c0d1e7
feat: improve PostgreSQL item search
TomBursch Oct 3, 2023
305244a
feat: Create user with management script
TomBursch Oct 3, 2023
d14692b
Allow skip of default item upgrade
TomBursch Oct 3, 2023
99690fb
Translated using Weblate (Czech) (TomBursch/kitchenowl-backend#50)
weblate Oct 3, 2023
424dfd2
feat: Add Hungarian and Swedish
TomBursch Oct 3, 2023
150d349
Prepare release 78
TomBursch Oct 3, 2023
9620ba8
fix: entrypoint
TomBursch Oct 3, 2023
40c476c
feat: improve PostgreSQL search
TomBursch Oct 3, 2023
3d4541b
Prepare release 79
TomBursch Oct 3, 2023
007f5ab
fix: PostgreSQL search
TomBursch Oct 4, 2023
d6c5d85
feat: Add indices for household ids
TomBursch Oct 4, 2023
72154c0
feat: Allow overwrite when importing
TomBursch Oct 4, 2023
c24d57f
fix: variable name typo
TomBursch Oct 4, 2023
10b5aed
Translated using Weblate (German) (TomBursch/kitchenowl-backend#53)
weblate Oct 6, 2023
3891693
Prepare release 80
TomBursch Oct 6, 2023
0986b08
chore: upgrade requirements
TomBursch Oct 16, 2023
035c371
fix: UWSGI listen to IPv6 (TomBursch/kitchenowl-backend#55)
TomBursch Oct 17, 2023
c362be8
chore: upgrade requirements
TomBursch Oct 18, 2023
a92c6db
feat: Expense overview pagination and tag merging
TomBursch Oct 18, 2023
7f52b1b
Translated using Weblate (Swedish) (TomBursch/kitchenowl-backend#54)
weblate Oct 18, 2023
fddcc0a
Prepare release 81
TomBursch Oct 18, 2023
15542c9
chore: upgrade requirements
TomBursch Oct 24, 2023
6fcfc22
fix: recipe suggestions
TomBursch Nov 2, 2023
8134431
feat: return recipes where item is optional
TomBursch Nov 2, 2023
013274b
chore: upgrade requirements
TomBursch Nov 2, 2023
e66a1a8
fix: tests
TomBursch Nov 2, 2023
35ee38a
Translated using Weblate (Swedish) (TomBursch/kitchenowl-backend#57)
weblate Nov 2, 2023
5f13619
feat: improve default items
TomBursch Nov 2, 2023
4f85bc7
Prepare release 82
TomBursch Nov 2, 2023
30fed0f
fix: scrape recipes (TomBursch/kitchenowl-backend#61)
TomBursch Nov 3, 2023
93c982c
Format code using black
TomBursch Nov 3, 2023
63e8ab1
fix: remove unsupported recipe error message from logs
TomBursch Nov 3, 2023
47fbb2c
Prepare release 83
TomBursch Nov 3, 2023
9e2faf6
fix: Recipe scrape
TomBursch Nov 5, 2023
ab99537
feat: add default items
TomBursch Nov 5, 2023
fefad8f
chore: upgrade requirements
TomBursch Nov 5, 2023
ced09a8
Prepare release 84
TomBursch Nov 5, 2023
50d256c
chore: upgrade requirements
TomBursch Nov 7, 2023
1381627
feat: Reset password & verify mail
TomBursch Nov 7, 2023
2931fd1
feat: add manage default items script
TomBursch Nov 7, 2023
522afc5
feat: add default items
TomBursch Nov 7, 2023
1afc005
fix: smaller bugs
TomBursch Nov 9, 2023
75684c6
feat: expense exclude from statistics
TomBursch Nov 9, 2023
5591091
Translated using Weblate (Spanish) (TomBursch/kitchenowl-backend#60)
weblate Nov 13, 2023
c2df78b
chore: upgrade requirements
TomBursch Nov 13, 2023
ed8a7dd
Prepare release 85
TomBursch Nov 13, 2023
5dc050c
feat: OIDC support (TomBursch/kitchenowl-backend#62)
TomBursch Nov 15, 2023
57ffde7
fix: username stripping
TomBursch Nov 15, 2023
e1388ff
feat: update mail service
TomBursch Nov 15, 2023
591d889
fix: login
TomBursch Nov 16, 2023
8f08d49
Translated using Weblate (Greek) (TomBursch/kitchenowl-backend#63)
weblate Nov 16, 2023
949372d
Prepare release 86
TomBursch Nov 16, 2023
1699682
fix: OIDC
TomBursch Nov 16, 2023
83265e4
Prepare release 87
TomBursch Nov 16, 2023
ba01b60
fix: Use preferred username on OIDC account creation
TomBursch Nov 21, 2023
6018519
fix: Update analytics endpoint
TomBursch Nov 21, 2023
543c5db
feat: update expense API
TomBursch Nov 23, 2023
6d82658
fix: expense overview API
TomBursch Nov 23, 2023
58640f1
Translated using Weblate (Dutch) (TomBursch/kitchenowl-backend#64)
weblate Nov 23, 2023
2a87fb3
fix: Remove buko
TomBursch Nov 23, 2023
3617ed1
chore: upgrade requirements
TomBursch Nov 23, 2023
b0c1a58
Prepare release 88
TomBursch Nov 23, 2023
d192d76
feat: Basic OpenAPI documentation endpoint
TomBursch Nov 27, 2023
b19b4ae
fix: update analytics endpoint
TomBursch Nov 27, 2023
ddc82f1
feat: support Message broker
TomBursch Nov 29, 2023
e5169f1
feat: Add background tasks
TomBursch Nov 29, 2023
9cbeca2
fix: Expense overview for PostgreSQL
TomBursch Nov 29, 2023
e4930fd
Prepare release 89
TomBursch Nov 29, 2023
81d8f06
fix: send mail in background
TomBursch Nov 30, 2023
de7c0a8
fix: error logging
TomBursch Nov 30, 2023
94282bd
Translated using Weblate (Spanish) (TomBursch/kitchenowl-backend#65)
weblate Nov 30, 2023
e2c7dfb
chore: upgrade requirements
TomBursch Nov 30, 2023
80cee6f
Prepare release 90
TomBursch Nov 30, 2023
263ddec
fix: manage send mails
TomBursch Nov 30, 2023
8533de6
fix: Upgrade default items
TomBursch Nov 30, 2023
b0bc2ac
Prepare release 91
TomBursch Nov 30, 2023
1787745
fix: send async verification mail
TomBursch Dec 1, 2023
88432e7
fix: python manage script
TomBursch Dec 1, 2023
36a468a
fix: email spelling
TomBursch Dec 1, 2023
eca267a
fix: update all user sorting
TomBursch Dec 4, 2023
5d2640a
fix: smaller bugs
TomBursch Dec 6, 2023
2f38464
feat: improve SQLite language support
TomBursch Dec 7, 2023
99b839c
chore: upgrade requirements
TomBursch Dec 7, 2023
6f5363b
fix: docker build
TomBursch Dec 7, 2023
00dcf56
Translated using Weblate (Chinese (Simplified)) (TomBursch/kitchenowl…
weblate Dec 7, 2023
f8c0318
chore: Upgrade requirements
TomBursch Dec 13, 2023
365d038
Prepare release 92
TomBursch Dec 13, 2023
41c7a26
chore: upgrade requirements
TomBursch Dec 21, 2023
aac8582
chore: upgrade requirements
TomBursch Jan 2, 2024
1b45e14
fix: IPv6 not starting (TomBursch/kitchenowl-backend#68)
TomBursch Jan 2, 2024
27a2418
Translated using Weblate (Dutch) (TomBursch/kitchenowl-backend#67)
weblate Jan 6, 2024
babf4de
fix: get all items
TomBursch Jan 6, 2024
01fdfb3
fix: Add Australian English
TomBursch Jan 6, 2024
1ce703f
feat: update default items attributes
TomBursch Jan 6, 2024
a1bd35c
chore: upgrade requirements
TomBursch Jan 6, 2024
92abca0
Prepare release 93
TomBursch Jan 6, 2024
f796db0
Merge remote-tracking branch 'backend/rwb-base2' into backend-integra…
beatbrot Jan 9, 2024
f9fd105
Fix pytest action
beatbrot Jan 9, 2024
bbd2e7a
Move app to subfolder
TomBursch Jan 19, 2024
c9e709b
Add back pubspec.lock
TomBursch Jan 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
67 changes: 14 additions & 53 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
# Docker ignore (include only web files)
# General files
.git
.github

# KitchenOwl
icons/
docs/
fedora/
ios/
android/
linux/
macos/
windows/
.github/
kitchenowl/fedora/
kitchenowl/ios/
kitchenowl/android/
kitchenowl/linux/
kitchenowl/macos/
kitchenowl/windows/

backend/upload/
backend/database.db

# .gitignore here:
# Miscellaneous
Expand Down Expand Up @@ -84,60 +90,15 @@ unlinked_spec.ds
**/android/key.properties
*.jks

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/.last_build_id
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/ephemeral
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# macOS
**/macos/Flutter/GeneratedPluginRegistrant.swift
**/macos/Flutter/ephemeral

# Coverage
coverage/

# Symbols
app.*.symbols

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock

# MkDocs
site/

# KitchenOwl
icons/

# Development
.devcontainer

Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/deploy_backend_docker_hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: CI deploy backend to Docker Hub

# Controls when the workflow will run
on:
# Triggers the workflow on push events but only for tags
push:
branches: [ main ]
paths:
- backend/**
tags:
- "v*"
- "beta-v*"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: decide docker tags
id: dockertag
run: |
if [[ $REF == "refs/tags/v"* ]]
then
echo "tags=$BASE_TAG:latest, $BASE_TAG:beta, $BASE_TAG:${REF#refs/tags/}" >> $GITHUB_ENV
elif [[ $REF == "refs/tags/beta-v"* ]]
then
echo "tags=$BASE_TAG:beta, $BASE_TAG:${REF#refs/tags/}" >> $GITHUB_ENV
else
echo "tags=$BASE_TAG:dev" >> $GITHUB_ENV
fi
env:
REF: ${{ github.ref }}
BASE_TAG: ${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl-backend

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: backend/Dockerfile
platforms: linux/amd64,linux/arm64 #,linux/arm/v7 #,linux/386,linux/arm/v6
push: true
tags: ${{ env.tags }}
# cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl:buildcache
# cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl:buildcache,mode=max

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
20 changes: 6 additions & 14 deletions .github/workflows/deploy_docker_hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ on:
push:
branches: [ main ]
paths:
- lib/**
- web/**
- assets/**
- Dockerfile
- entrypoint.sh
- pubspec.yaml
- default.conf.template
- kitchenowl/**
- backend/**
tags:
- "v*"
- "beta-v*"
Expand Down Expand Up @@ -45,10 +40,7 @@ jobs:
fi
env:
REF: ${{ github.ref }}
BASE_TAG: ${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl-web

- name: Tags
run: echo ${{ env.tags }}
BASE_TAG: ${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -69,11 +61,11 @@ jobs:
with:
context: ./
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
platforms: linux/amd64,linux/arm64 #,linux/arm/v7 #,linux/386,linux/arm/v6
push: true
tags: ${{ env.tags }}
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl-web:buildcache
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl-web:buildcache,mode=max
# cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl:buildcache
# cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl:buildcache,mode=max

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
1 change: 1 addition & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
paths:
- docs/**
- mkdocs.yml
- docs-requirements.txt
workflow_dispatch:

jobs:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy_play_store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
with:
channel: stable
- run: flutter config --no-analytics
- run: flutter doctor -v

# Checkout code and get packages.
- name: Checkout code
uses: actions/checkout@v4
- run: flutter packages get
working-directory: kitchenowl/android

# Decide track internal|beta|production (not in use yet)
- name: Decide track
Expand All @@ -55,7 +55,7 @@ jobs:
with:
ruby-version: "3.2"
bundler-cache: true
working-directory: android
working-directory: kitchenowl/android

- name: Configure Keystore
run: |
Expand All @@ -69,11 +69,11 @@ jobs:
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
working-directory: android
working-directory: kitchenowl/android

# Build and deploy with Fastlane (by default, to internal track) 🚀.
# Naturally, promote_to_production only deploys.
- run: bundle exec fastlane ${{ github.event.inputs.lane || 'internal' }}
env:
PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }}
working-directory: android
working-directory: kitchenowl/android
70 changes: 70 additions & 0 deletions .github/workflows/deploy_web_docker_hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: CI deploy web to Docker Hub

# Controls when the workflow will run
on:
# Triggers the workflow on push events of tags
push:
branches: [ main ]
paths:
- kitchenowl/**
tags:
- "v*"
- "beta-v*"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

- name: decide docker tags
id: dockertag
run: |
if [[ $REF == "refs/tags/v"* ]]
then
echo "tags=$BASE_TAG:latest, $BASE_TAG:beta, $BASE_TAG:${REF#refs/tags/}" >> $GITHUB_ENV
elif [[ $REF == "refs/tags/beta-v"* ]]
then
echo "tags=$BASE_TAG:beta, $BASE_TAG:${REF#refs/tags/}" >> $GITHUB_ENV
else
echo "tags=$BASE_TAG:dev" >> $GITHUB_ENV
fi
env:
REF: ${{ github.ref }}
BASE_TAG: ${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl-web

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: kitchenowl/Dockerfile
platforms: linux/amd64,linux/arm64,linux/386,linux/arm/v7,linux/arm/v6
push: true
tags: ${{ env.tags }}
cache-from: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl-web:buildcache
cache-to: type=registry,ref=${{ secrets.DOCKER_HUB_USERNAME }}/kitchenowl-web:buildcache,mode=max

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
46 changes: 46 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Pytesting

on:
push:
branches: [ main ]
paths:
- backend/**
pull_request:
branches: [ main ]
paths:
- backend/**

jobs:
build:

runs-on: ubuntu-latest

defaults:
run:
working-directory: backend

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: backend/requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 app tests --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 app tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
Loading
Loading