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

feat: add connect #1

Open
wants to merge 654 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
654 commits
Select commit Hold shift + click to select a range
54a2483
chore: fix resource seeds
boojack Jan 21, 2024
024a818
chore: update zh-Hant (#2815)
ti777777 Jan 21, 2024
3a129d5
fix: avoid making memos public when disabled (#2816)
moehanabi Jan 22, 2024
bf905bb
chore: remove unused date picker
boojack Jan 22, 2024
d165d87
refactor: markdown parser matchers
boojack Jan 23, 2024
d7f02b9
chore: fix linter
boojack Jan 23, 2024
a316e23
chore: implement referenced content node
boojack Jan 23, 2024
fdb1779
chore: implement referenced content renderer
boojack Jan 23, 2024
3dbb254
chore: update referenced memo title from params
boojack Jan 23, 2024
1b69b73
chore: update calendar styles
boojack Jan 23, 2024
f654d3c
fix: encode filename when using url prefix for resources (#2829)
mudkipme Jan 24, 2024
08ac60c
chore: update memo relation dialog
boojack Jan 25, 2024
a5bc2d0
chore: update i18n from Weblate (#2832)
boojack Jan 25, 2024
6d5e1de
chore: update member section
boojack Jan 25, 2024
70d1301
chore: use filter in url params
boojack Jan 25, 2024
7955802
feat: implement rename tag
boojack Jan 25, 2024
4f2b00b
chore: add migration scripts
boojack Jan 26, 2024
db3457e
chore: bump version
boojack Jan 26, 2024
d7889d9
chore: tweak url filters
boojack Jan 26, 2024
e5ff182
chore: add Hungarian locale
boojack Jan 26, 2024
2f16b70
chore: tweak scripts
boojack Jan 26, 2024
f8b9a83
chore: tweak default value
boojack Jan 26, 2024
ddc8902
fix: use mysql to parse dsn (#2838)
zwpaper Jan 26, 2024
e1977df
chore: remove check underscores
boojack Jan 26, 2024
bc2d2d0
feat: support set embedded content in UI
boojack Jan 26, 2024
7edb359
chore: update default request limit
boojack Jan 26, 2024
5661717
chore: tweak embedded memo style
boojack Jan 26, 2024
b9cbe66
chore: update tag rename
boojack Jan 26, 2024
4b223c1
chore: update collapse sidebar
boojack Jan 26, 2024
c26109c
chore: update list memos request
boojack Jan 27, 2024
8455114
chore: fix list memos request
boojack Jan 27, 2024
10d709c
chore: fix highlight cursor
boojack Jan 27, 2024
ed32b20
chore: update frontend dependencies
boojack Jan 27, 2024
932f636
chore: update codeblock renderer
boojack Jan 27, 2024
8db90a0
chore: remove unused dependencies
boojack Jan 27, 2024
1dc4f02
chore: update memo requests
boojack Jan 27, 2024
309fab2
chore: implement nested blockquote
boojack Jan 27, 2024
887903b
feat: add buf plugin to generate openapiv2 spec (#2843)
lincolnthalles Jan 27, 2024
11dd23f
chore: tweak link checks
boojack Jan 27, 2024
87b2394
chore: upgrade backend dependencies
boojack Jan 27, 2024
21ef5a9
chore: tweak workspace service
boojack Jan 27, 2024
12275c6
chore: fix linter warning
boojack Jan 27, 2024
f4e722c
chore: remove latest tag
boojack Jan 27, 2024
5e74394
chore: add resource name migrator
boojack Jan 27, 2024
a4452d8
chore: update linter rules
boojack Jan 28, 2024
f05a893
chore: fix list memos
boojack Jan 28, 2024
8c62929
chore: update code block styles
boojack Jan 28, 2024
ef73299
chore: update resource name migrator
boojack Jan 28, 2024
55ecdae
chore: fix auto link matcher
boojack Jan 28, 2024
f4ac7ff
chore: update memo resource url
boojack Jan 28, 2024
af646ce
refactor: move gomark
boojack Jan 29, 2024
54c5039
chore: fix golang linter
boojack Jan 29, 2024
2b7bd47
fix: rss routes
boojack Jan 29, 2024
cbcec80
chore: fix import order
boojack Jan 29, 2024
fa17dce
feat: pre-signed URL for S3 storage (#2855)
reddec Jan 29, 2024
dd9ee44
docs: regenerate swagger
boojack Jan 29, 2024
de8db63
chore: rename workspace setting service
boojack Jan 29, 2024
c5a5f67
refactor: migrate auth service
boojack Jan 29, 2024
a16bde2
chore: tweak variable name
boojack Jan 29, 2024
50f7f13
fix: month grouping error in timeline page (#2861)
xwjdsh Jan 29, 2024
7333733
feat: export all user Memos as a .zip of Markdown files (#2854)
nalderto Jan 30, 2024
1bad054
feat: add notice when sharing private links (#2809)
moehanabi Jan 30, 2024
bee6f27
fix: the same-storage check in the new `pre-sign` feature (#2860)
ertuil Jan 30, 2024
ad2d492
chore: move preview memo content
boojack Jan 30, 2024
59d69a0
feat: initial gomark wasm importer
boojack Jan 30, 2024
28c7a75
chore: fix import nodes
boojack Jan 30, 2024
e7d5dfe
chore: add en-GB language (#2865)
lincolnthalles Jan 30, 2024
49e3eb1
chore: update gomark wasm
boojack Jan 30, 2024
52539fc
chore: prevent visitors from breaking demo (#2869)
lincolnthalles Jan 31, 2024
279cba0
chore: greatly speed up migrator and lower memory usage (#2874)
lincolnthalles Jan 31, 2024
30ae414
chore: update gomark source
boojack Jan 31, 2024
3158c4b
fix: role error in api/v2 when the first user registers (#2875)
xwjdsh Jan 31, 2024
8ce6a32
feat: use gomark wasm in frontend
boojack Jan 31, 2024
2f0b0e0
chore: remove node definition
boojack Jan 31, 2024
0b4914d
chore: update generated node types
boojack Jan 31, 2024
b4f2a3b
chore: remove migrator
boojack Jan 31, 2024
7922702
chore: bump version
boojack Jan 31, 2024
554f93e
fix: move initial wasm into app
boojack Feb 1, 2024
e3afad7
fix: update initial wasm
boojack Feb 1, 2024
e78311b
fix: initial gomark wasm
boojack Feb 1, 2024
7cd3fcb
fix: wrong order of the timeline in the resource page & add webhook w…
ertuil Feb 1, 2024
fdd17ce
chore: update memo content key
boojack Feb 1, 2024
dd06278
feat: add batch upsert tags
boojack Feb 1, 2024
f6f193a
chore: format proto
boojack Feb 1, 2024
c342c46
chore: update services comment
boojack Feb 1, 2024
c522e14
chore: update codeblock style
boojack Feb 1, 2024
7f5148d
chore: clean dropdown
boojack Feb 1, 2024
8340e6b
chore: upgrade gomark
boojack Feb 3, 2024
374f3f7
chore: fix filter initial state
boojack Feb 3, 2024
00c47a0
chore: fix menu z-index
boojack Feb 3, 2024
57510dd
chore: update readme with used resources
boojack Feb 3, 2024
82e7281
chore: fix typo in About.tsx (#2899)
eltociear Feb 4, 2024
b8a9783
fix: signin error notification is not shown (#2908)
athurg Feb 4, 2024
1e07b70
chore: fix export memos
boojack Feb 4, 2024
eb4f7b4
chore: update memo find builder
boojack Feb 4, 2024
c925077
chore: tweak filter checks
boojack Feb 4, 2024
d2603ee
chore: upgrade frontend dependencies
boojack Feb 4, 2024
8773a3d
chore: tweak assets folder
boojack Feb 4, 2024
be899cd
chore: update eslint config
boojack Feb 4, 2024
15c9087
chore: update request base url
boojack Feb 4, 2024
b056c59
chore: add vercel.json
boojack Feb 4, 2024
9e72432
chore: tweak cookie attrs
boojack Feb 4, 2024
ce663ef
chore: update cookie attrs
boojack Feb 4, 2024
ab4a670
chore: add env example
boojack Feb 4, 2024
c30d7ab
chore: update cors middleware
boojack Feb 4, 2024
06eff15
chore: tweak memo find builder
boojack Feb 4, 2024
397a7f0
chore: add postinstall script
boojack Feb 5, 2024
e35225f
chore: fix resource url
boojack Feb 5, 2024
ba46038
chore: remove type-gen script
boojack Feb 5, 2024
25efc33
chore: tweak timeline styles
boojack Feb 5, 2024
8f15e87
chore: update cookie attrs
boojack Feb 5, 2024
46ea16e
chore: fix cookie attrs
boojack Feb 5, 2024
434ef44
chore: add cookie builder
boojack Feb 5, 2024
6b59c76
chore: fix linter warning
boojack Feb 5, 2024
185ec2a
chore: update inbox service
boojack Feb 6, 2024
ded8001
chore: fix v2 routes
boojack Feb 6, 2024
a76b86f
chore: fix highlight code
boojack Feb 6, 2024
5ac17fc
fix: displaying archived memos (#2933)
Kaz205 Feb 7, 2024
06fb217
feat: add compact mode setting (Proto) (#2934)
MehadND Feb 7, 2024
9956823
chore: run buf generate
boojack Feb 7, 2024
559e427
chore: implement reaction store
boojack Feb 7, 2024
d243411
chore: impl compact mode setting (#2935)
MehadND Feb 8, 2024
43a2d6c
chore: tweak user setting
boojack Feb 8, 2024
a4fa67c
chore: update dependencies
boojack Feb 8, 2024
3a5bc82
chore: implement reaction service
boojack Feb 8, 2024
e5f244c
chore: fix tests
boojack Feb 8, 2024
d86f0ba
chore: implement reaction frontend
boojack Feb 8, 2024
c782251
chore: tweak view checks
boojack Feb 8, 2024
334e489
chore: improve docker-compose.dev (#2938)
lincolnthalles Feb 8, 2024
4081a6f
chore: add more reactions
boojack Feb 8, 2024
60efd3a
chore: tweak memo view
boojack Feb 8, 2024
81aa9b1
feat: add notice when sharing private links in MemoDetail (#2942)
moehanabi Feb 9, 2024
3dddd3e
chore: tweak reaction store
boojack Feb 9, 2024
b3ca996
chore: tweak linter
boojack Feb 9, 2024
ebe3678
feat: add visibility select in ShareMemoDialog (#2941)
moehanabi Feb 13, 2024
606e574
chore: update enum type
boojack Feb 13, 2024
4aa4417
chore: allow all 20x response status code in webhook (#2947)
ImSingee Feb 13, 2024
f1ec577
chore: update inbox props
boojack Feb 14, 2024
d22b772
chore: add memo actions to memo detail page
boojack Feb 15, 2024
fc1a2cf
chore: update ja.json (#2966)
Somme4096 Feb 17, 2024
a86117f
feat: add new line if the cursor is on a character when adding a tag …
Kaz205 Feb 19, 2024
03d67d5
feat: add mermaid support in codeblock (#2971)
C1C0 Feb 19, 2024
e6d0c00
chore: update vi.json (#2980)
hoangsvit Feb 20, 2024
8e11826
chore: update workspace setting service
boojack Feb 20, 2024
fa62e8b
chore: tweak linter errors
boojack Feb 20, 2024
4a6da91
chore: fix serve frontend flag
boojack Feb 20, 2024
13b911e
chore: add spoiler node
boojack Feb 20, 2024
80b64c0
chore: tweak workspace setting seeds
boojack Feb 21, 2024
50a3af3
chore: fix get general setting
boojack Feb 21, 2024
ce32206
chore: remove unused system setting
boojack Feb 21, 2024
c6162d3
chore: update dependencies
boojack Feb 21, 2024
e7bbd85
chore: tweak spoiler animation
boojack Feb 21, 2024
4378816
chore: tweak i18n
boojack Feb 21, 2024
51d58d3
chore: add workspace setting migrator
boojack Feb 21, 2024
6b14d87
chore: fix linter
boojack Feb 21, 2024
0afdbe3
chore: remove animation of spoiler
boojack Feb 22, 2024
9cd835b
chore: upgrade gomark wasm
boojack Feb 22, 2024
39bf850
fix: embed memos callback
boojack Feb 22, 2024
4d9c929
chore: upgrade gomark
boojack Feb 23, 2024
e585578
chore: tweak readme
boojack Feb 23, 2024
ce133ad
chore: retire unused workspace settings
boojack Feb 23, 2024
e602aee
fix: update workspace general setting
boojack Feb 23, 2024
f2eb9f1
chore: fix get workspace setting
boojack Feb 23, 2024
5b92ac1
chore: fix setting migrator
boojack Feb 23, 2024
db56e1b
chore: fix user banner dropdown
boojack Feb 23, 2024
dfe29ec
chore: tweak route layout
boojack Feb 24, 2024
6846892
chore: tweak setting styles
boojack Feb 24, 2024
222d04f
chore: add fuse to get tag suggestions
boojack Feb 24, 2024
b0f52ad
chore: remove metric service
boojack Feb 24, 2024
8d08cfe
fix: incorrectly checking whether registration is allowed in the logi…
Cufoon Feb 26, 2024
51a7934
fix: firefox/safari to redirect to /explore in HomeLayout (#3001)
zhzy0077 Feb 26, 2024
1ae9bf2
fix: telegram callback query handler dereferencing nil pointer if mem…
ericd23 Feb 26, 2024
5526355
fix: dark mode tag selection and suggestion (#3004)
xyl1t Feb 27, 2024
89a270c
chore: add username to cache key
boojack Feb 27, 2024
1aa7584
chore: upgrade gomark
boojack Feb 28, 2024
3e50bee
chore: move api directory
boojack Feb 28, 2024
5f2a624
chore: tweak imports order
boojack Feb 28, 2024
00788bd
chore: update actions
boojack Feb 29, 2024
12f4d3a
chore: tweak default page size
boojack Feb 29, 2024
dfa78ca
chore: update logger
boojack Feb 29, 2024
621a8d4
chore: fix typo in build script's if statement (#3017)
ayan0312 Feb 29, 2024
8eb01ad
chore: go mod tidy
boojack Feb 29, 2024
898b3c3
chore: update gomark.wasm
boojack Mar 1, 2024
7e23ceb
chore: fix frontend linter
boojack Mar 1, 2024
9a8a1d0
chore: add comments icon
boojack Mar 2, 2024
3b089ee
fix: ignore "Tab" key down event when is composing in editor(#3026) (…
jjaychen1e Mar 3, 2024
c1da87a
chore: update get request origin
boojack Mar 3, 2024
e441e38
chore: update error logger
boojack Mar 3, 2024
cfb50f1
chore: tweak linter
boojack Mar 3, 2024
ebcf43c
chore: update gomark.wasm
boojack Mar 3, 2024
dcfb2b7
chore: tweak docs generate path
boojack Mar 3, 2024
d34273b
chore: update memo icons style
boojack Mar 3, 2024
95b0234
chore: tweak logger
boojack Mar 3, 2024
ac8a374
chore: bump version
boojack Mar 3, 2024
ac03153
chore: update i18n locales imports
boojack Mar 3, 2024
59314cd
chore: add compact mode to memo view
boojack Mar 3, 2024
f0a521f
feat: improve theming (#3032)
Dubzer Mar 4, 2024
7d5f603
chore: update compact view
boojack Mar 4, 2024
f46b64a
fix: check disallow public memo in Telegram(#3036) (#3037)
redsubmarine Mar 4, 2024
342f341
chore: ignore import locale error
boojack Mar 4, 2024
ec20610
chore: tweak i18n locale
boojack Mar 4, 2024
6cbfbe9
chore: settings page improvements (#3034)
Dubzer Mar 4, 2024
f9f2776
chore: fix comment amount
boojack Mar 4, 2024
240da33
chore(i18n): update translation files (#3042)
michaelien Mar 5, 2024
8459992
chore: update frontend dependencies
boojack Mar 6, 2024
706e749
chore: translated using Weblate (Portuguese (Brazil)) (#3050)
michaelien Mar 7, 2024
ed4b48c
chore: update gomark.wasm
boojack Mar 7, 2024
1540de2
chore: translated using Weblate (Korean) (#3060)
michaelien Mar 9, 2024
77bafba
chore: update gomark.wasm
boojack Mar 9, 2024
ed1954c
chore: fix check setting value
boojack Mar 9, 2024
999a053
fix: body overflow styles #3056
zty42 Mar 9, 2024
8cdc0c7
chore: add delete tag action
boojack Mar 9, 2024
9ffc151
chore: update i18n with Weblate (#3079)
michaelien Mar 12, 2024
8e7f826
chore: fix typo (#3080)
thirdkeyword Mar 12, 2024
425e85f
chore: fix spanish typos (#3083)
magomzr Mar 12, 2024
6b6edc3
chore: update tg message handler
boojack Mar 12, 2024
963c630
chore: update readme with weblate
boojack Mar 13, 2024
7c87c1f
chore: update build scripts (#3085)
lincolnthalles Mar 13, 2024
4d41b68
feat: implemented link previews (proto files) (#3072)
MehadND Mar 13, 2024
0abe20d
feat: implemented link previews (server files) (#3073)
MehadND Mar 13, 2024
5d740c3
chore: update link service
boojack Mar 13, 2024
51b093f
fix: too many USER_SETTING_ACCESS_TOKENS in api/v1/user/me
whatwewant Mar 13, 2024
e5fc107
chore: tweak i18n locales
boojack Mar 13, 2024
7c1510e
chore: update i18n with Weblate (#3090)
boojack Mar 13, 2024
cbafb59
feat: merge upgrade 20240313
whatwewant Mar 13, 2024
96ec1db
fix: removed files
whatwewant Mar 13, 2024
abe5342
chore: improve Dockerfile
whatwewant Mar 13, 2024
0f9f875
feat: add cache for auth-connect
whatwewant Mar 13, 2024
3089fcf
Merge pull request #2 from doreamon-design/feat/merge-upgrade-20240313
whatwewant Mar 13, 2024
d3945a3
fix: if api 401, reload page by hack fetch
whatwewant Mar 20, 2024
bd482e9
fix: if api 401, reload page by hack fetch, avoid reload more when is…
whatwewant Mar 20, 2024
31b8628
fix: logout logic
whatwewant Mar 21, 2024
7476792
fix: api.v2.UserService/ListUserAccessTokens too many access tokens c…
whatwewant Apr 7, 2024
912b95d
fix: api.v2.UserService/ListUserAccessTokens too many access tokens c…
whatwewant Apr 7, 2024
517d5c8
chore(server): doreamon add logger for access token cache
whatwewant Apr 7, 2024
210a0ef
fix(server): echo middleware will create new every request cause acce…
whatwewant Apr 7, 2024
d2e6bb0
fix: api.v2.user_service.ListUserAccessTokens limit length after sort
whatwewant Apr 7, 2024
65da873
fix: api.v2.user_service.ListUserAccessTokens limit length after sort
whatwewant Apr 7, 2024
019d8cd
fix(api.v2.ListUserAccessTokens access token desc order with issued_at
whatwewant Apr 7, 2024
91a2cf1
fix: zoox logger error log level logic
whatwewant Apr 7, 2024
ad775c4
fix: login = local first + connect second
whatwewant Apr 8, 2024
a4c6fcc
feat: main editor support fullscreen
whatwewant Apr 30, 2024
80ffe8e
chore: style origin
whatwewant Apr 30, 2024
178663a
fix: style fullscreen cannot scroll bottom
whatwewant Apr 30, 2024
e30f124
Merge pull request #4 from doreamon-design/feat/main-editor-support-f…
whatwewant May 7, 2024
a33fcf9
fix: fullscreen editor cannot visit submit button when images is too …
whatwewant May 7, 2024
1751552
fix: fullscreen editor cannot visit submit button when images is too …
whatwewant May 7, 2024
afb2432
fix: fullscreen editor cannot visit submit button when images is too …
whatwewant May 7, 2024
e8ed485
fix: axios intercept 401 to relogin
whatwewant Jun 14, 2024
4b2dc73
chore: resource cache control 30 day
whatwewant Oct 2, 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
  •  
  •  
  •  
13 changes: 10 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Bug Report
description: Create a report to help us improve
description: If something isn't working as expected
labels: [bug]
body:
- type: markdown
attributes:
value: |
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
Before submitting a bug report, please check if the issue is already present in the issues. If it is, please add a reaction to the issue. If it isn't, please fill out the form below.
- type: textarea
attributes:
label: Describe the bug
Expand All @@ -24,8 +24,15 @@ body:
3. See error
validations:
required: true
- type: input
attributes:
label: The version of Memos you're using
description: |
Provide the version of Memos you're using.
validations:
required: true
- type: textarea
attributes:
label: Screenshots or additional context
description: |
Add screenshots or any other context about the problem.
If applicable, add screenshots to help explain your problem. And add any other context about the problem here. Such as the device you're using, etc.
28 changes: 18 additions & 10 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
name: Feature Request
description: Suggest an idea for this project
description: If you have a suggestion for a new feature
labels: [enhancement]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to suggest an idea for memos!
Before submitting a feature request, please check if the issue is already present in the issues. If it is, please add a reaction to the issue. If it isn't, please fill out the form below.
- type: textarea
attributes:
label: Is your feature request related to a problem?
label: Describe the solution you'd like
description: |
A clear and concise description of what the problem is.
A clear and concise description of what you want to happen.
placeholder: |
I'm always frustrated when [...]
It would be great if [...]
validations:
required: true
- type: textarea
- type: dropdown
attributes:
label: Describe the solution you'd like
description: |
A clear and concise description of what you want to happen.
label: Type of feature
description: What type of feature is this?
options:
- User Interface (UI)
- User Experience (UX)
- API
- Documentation
- Integrations
- Other
default: 0
validations:
required: true
- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request.
description: |
What are you trying to do? Why is this important to you?
10 changes: 5 additions & 5 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
check-latest: true
cache: true
- name: Verify go.mod is tidy
run: |
go mod tidy -go=1.21
go mod tidy -go=1.22
git diff --exit-code
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -37,9 +37,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
check-latest: true
cache: true
- name: Run all tests
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/build-and-push-release-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v4

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

- name: Extract build args
# Extract version from branch name
Expand All @@ -25,40 +25,39 @@ jobs:
echo "VERSION=${GITHUB_REF_NAME#release/}" >> $GITHUB_ENV

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
install: true
version: v0.9.1

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
neosmemo/memos
ghcr.io/usememos/memos
tags: |
type=raw,value=latest
type=semver,pattern={{version}},value=${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}

- name: Build and Push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/build-and-push-stable-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: build-and-push-stable-image

on:
push:
branches:
- "stable"

jobs:
build-and-push-release-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
version: v0.9.1

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
neosmemo/memos
ghcr.io/usememos/memos
tags: |
type=raw,value=stable
flavor: |
latest=true

- name: Build and Push
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
12 changes: 6 additions & 6 deletions .github/workflows/build-and-push-test-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ jobs:
- uses: actions/checkout@v4

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

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
install: true
version: v0.9.1

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
neosmemo/memos
Expand All @@ -50,7 +50,7 @@ jobs:

- name: Build and Push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
Expand Down
74 changes: 0 additions & 74 deletions .github/workflows/codeql.yml

This file was deleted.

Loading
Loading