Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
62f63d4a
Unverified
Commit
62f63d4a
authored
Nov 19, 2022
by
boojack
Committed by
GitHub
Nov 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update dependencies version (#491)
parent
1acf2f8b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
28 deletions
+26
-28
codeql.yml
.github/workflows/codeql.yml
+0
-2
tests.yml
.github/workflows/tests.yml
+23
-23
Dockerfile
Dockerfile
+3
-3
No files found.
.github/workflows/codeql.yml
View file @
62f63d4a
...
@@ -17,8 +17,6 @@ on:
...
@@ -17,8 +17,6 @@ on:
pull_request
:
pull_request
:
# The branches below must be a subset of the branches above
# The branches below must be a subset of the branches above
branches
:
[
main
]
branches
:
[
main
]
schedule
:
-
cron
:
"
27
12
*
*
0"
jobs
:
jobs
:
analyze
:
analyze
:
...
...
.github/workflows/tests.yml
View file @
62f63d4a
...
@@ -9,32 +9,13 @@ on:
...
@@ -9,32 +9,13 @@ on:
branches
:
[
main
]
branches
:
[
main
]
jobs
:
jobs
:
go-static-checks
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-go@v3
with
:
go-version
:
1.18
check-latest
:
true
cache
:
true
-
name
:
Verify go.mod is tidy
run
:
|
go mod tidy
git diff --exit-code
-
name
:
golangci-lint
uses
:
golangci/golangci-lint-action@v3
with
:
args
:
-v
skip-cache
:
true
eslint-checks
:
eslint-checks
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-node@v3
-
uses
:
actions/setup-node@v3
with
:
with
:
node-version
:
"
1
6
"
node-version
:
"
1
8
"
cache
:
yarn
cache
:
yarn
cache-dependency-path
:
"
web/yarn.lock"
cache-dependency-path
:
"
web/yarn.lock"
-
run
:
yarn
-
run
:
yarn
...
@@ -49,7 +30,7 @@ jobs:
...
@@ -49,7 +30,7 @@ jobs:
-
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-node@v3
-
uses
:
actions/setup-node@v3
with
:
with
:
node-version
:
"
1
6
"
node-version
:
"
1
8
"
cache
:
yarn
cache
:
yarn
cache-dependency-path
:
"
web/yarn.lock"
cache-dependency-path
:
"
web/yarn.lock"
-
run
:
yarn
-
run
:
yarn
...
@@ -64,7 +45,7 @@ jobs:
...
@@ -64,7 +45,7 @@ jobs:
-
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-node@v3
-
uses
:
actions/setup-node@v3
with
:
with
:
node-version
:
"
1
6
"
node-version
:
"
1
8
"
cache
:
yarn
cache
:
yarn
cache-dependency-path
:
"
web/yarn.lock"
cache-dependency-path
:
"
web/yarn.lock"
-
run
:
yarn
-
run
:
yarn
...
@@ -73,13 +54,32 @@ jobs:
...
@@ -73,13 +54,32 @@ jobs:
run
:
yarn build
run
:
yarn build
working-directory
:
web
working-directory
:
web
go-static-checks
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-go@v3
with
:
go-version
:
1.19
check-latest
:
true
cache
:
true
-
name
:
Verify go.mod is tidy
run
:
|
go mod tidy
git diff --exit-code
-
name
:
golangci-lint
uses
:
golangci/golangci-lint-action@v3
with
:
args
:
-v
skip-cache
:
true
go-tests
:
go-tests
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
uses
:
actions/checkout@v3
-
uses
:
actions/checkout@v3
-
uses
:
actions/setup-go@v3
-
uses
:
actions/setup-go@v3
with
:
with
:
go-version
:
1.1
8
go-version
:
1.1
9
check-latest
:
true
check-latest
:
true
cache
:
true
cache
:
true
-
name
:
Run all tests
-
name
:
Run all tests
...
...
Dockerfile
View file @
62f63d4a
# Build frontend dist.
# Build frontend dist.
FROM
node:1
6.15.0-alpine
AS frontend
FROM
node:1
8.12.1-alpine3.16
AS frontend
WORKDIR
/frontend-build
WORKDIR
/frontend-build
COPY
./web/ .
COPY
./web/ .
...
@@ -8,7 +8,7 @@ RUN yarn
...
@@ -8,7 +8,7 @@ RUN yarn
RUN
yarn build
RUN
yarn build
# Build backend exec file.
# Build backend exec file.
FROM
golang:1.1
8
.3-alpine3.16 AS backend
FROM
golang:1.1
9
.3-alpine3.16 AS backend
WORKDIR
/backend-build
WORKDIR
/backend-build
RUN
apk update
RUN
apk update
...
@@ -20,7 +20,7 @@ COPY --from=frontend /frontend-build/dist ./server/dist
...
@@ -20,7 +20,7 @@ COPY --from=frontend /frontend-build/dist ./server/dist
RUN
go build
-o
memos ./bin/server/main.go
RUN
go build
-o
memos ./bin/server/main.go
# Make workspace with above generated files.
# Make workspace with above generated files.
FROM
alpine:3.16
.0
AS monolithic
FROM
alpine:3.16 AS monolithic
WORKDIR
/usr/local/memos
WORKDIR
/usr/local/memos
COPY
--from=backend /backend-build/memos /usr/local/memos/
COPY
--from=backend /backend-build/memos /usr/local/memos/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment