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

20240517 develop to release ( v4.0.0 ) #493

Merged
merged 725 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
725 commits
Select commit Hold shift + click to select a range
ed161c0
trivial. fix update systemNotificationRUle
ktkfree Apr 16, 2024
1afcaa8
Merge pull request #383 from openinfradev/minor_fix
ktkfree Apr 16, 2024
84c8cfc
trivial. support array filter on users
ktkfree Apr 16, 2024
cce3c64
Merge pull request #384 from openinfradev/fix_filter
ktkfree Apr 16, 2024
bc33c42
bugfix: pass value to serializer
robertchoi80 Apr 16, 2024
1b10149
Merge pull request #385 from openinfradev/fix-serialize-bug
ktkfree Apr 16, 2024
1ca466e
policy violation widget
seungkyua Apr 16, 2024
ff6822a
policy violation widget\n endpoint generation
seungkyua Apr 16, 2024
092d61a
policy violation widget\n swagger generation
seungkyua Apr 16, 2024
ce8c6e1
GetPolicyForEdit fill parameter 버그 수정
sangkeon Apr 16, 2024
8390c22
Merge pull request #386 from seungkyua/20240415_policy_violation
seungkyua Apr 16, 2024
df23102
trivial. add user roles to audit
ktkfree Apr 16, 2024
6c7b7bc
Merge pull request #387 from sangkenlee/policy-fillparam-fix
ktkfree Apr 16, 2024
00b4b77
Merge pull request #388 from openinfradev/audit_fetch
ktkfree Apr 16, 2024
458c880
trivial. bugfix for stack node count
ktkfree Apr 16, 2024
24115ad
Merge pull request #389 from openinfradev/audit_fetch
ktkfree Apr 16, 2024
cdb7ce9
정책 업데이트 버그 픽스
sangkenlee Apr 17, 2024
aad38c2
trivial. add status to systemNotificationRule
ktkfree Apr 17, 2024
eb83030
Merge pull request #391 from openinfradev/fix_snr
ktkfree Apr 17, 2024
8a9c3ff
policy violation log skeleton code
seungkyua Apr 17, 2024
1c001bd
policy violation log skeleton code\n endpoint generation
seungkyua Apr 17, 2024
b63b8fa
policy violation log skeleton code\n swagger generation
seungkyua Apr 17, 2024
296edf1
Merge pull request #390 from sangkenlee/policy-update-fix
seungkyua Apr 17, 2024
ef215ca
Merge pull request #392 from seungkyua/20240416_policy_violation_log
seungkyua Apr 17, 2024
c9c70ec
trivial. fix filters
ktkfree Apr 17, 2024
f6f35a1
Merge pull request #393 from openinfradev/filter
ktkfree Apr 17, 2024
8da2a68
app-serving: add cluster name to app response
robertchoi80 Apr 17, 2024
47356b6
policy statistics widget
seungkyua Apr 18, 2024
c4fd13f
policy statistics widget\n endpoint generate
seungkyua Apr 18, 2024
a37e475
policy statistics widget\n swagger generate
seungkyua Apr 18, 2024
1ecee2e
Merge pull request #395 from seungkyua/20240417_policy_statistics
seungkyua Apr 18, 2024
30e17ec
trivial. fix validation
ktkfree Apr 18, 2024
87b9b36
Merge pull request #396 from openinfradev/stack_template_fix
ktkfree Apr 18, 2024
0bdc93b
change dashboard and widget path
seungkyua Apr 18, 2024
6b55c6e
change dashboard and widget path\n swagger generate
seungkyua Apr 18, 2024
6dd1e4a
Merge pull request #397 from seungkyua/20240418_dashboard_path
seungkyua Apr 18, 2024
94d0b1a
Merge pull request #394 from openinfradev/add-stack-name
ktkfree Apr 18, 2024
ac40063
PolicyTemplate permittedOrganizations 수정
sangkeon Apr 18, 2024
f8b567c
trivial. bugfix for application type
ktkfree Apr 18, 2024
4623122
Merge pull request #398 from sangkenlee/policytemplate-permittedorg-fix
ktkfree Apr 18, 2024
1fc60ac
Merge pull request #399 from openinfradev/stack_template_fix
ktkfree Apr 18, 2024
27faa78
다중 libs를 ---\n로 병합해서 처리 가능하도록 개선
sangkenlee Apr 18, 2024
5c5f2e0
Merge pull request #400 from sangkenlee/multi-libs
intelliguy Apr 19, 2024
3339972
clusterId로 policyId 목록 조회 함수 추가
sangkeon Apr 19, 2024
8ccaab2
Workload widget
seungkyua Apr 19, 2024
14d5d35
Workload widget\n endpoint generation
seungkyua Apr 19, 2024
a4cdd39
Workload widget\n swagger generation
seungkyua Apr 19, 2024
3d10c41
Merge pull request #402 from seungkyua/20240418_dashboard_workload
seungkyua Apr 19, 2024
0edcd37
Merge pull request #401 from sangkenlee/policyIds-by-clusterId
ktkfree Apr 19, 2024
3081cd3
정책 관리 K8s 연동 에러로그 추가
sangkeon Apr 19, 2024
6424780
feature. delete policies before stack deletion
ktkfree Apr 19, 2024
608f952
Merge pull request #403 from sangkenlee/k8s-call-log
ktkfree Apr 19, 2024
1811366
tirivial. add policy_ids to createCluster workflow
ktkfree Apr 19, 2024
fc2bc3a
Merge pull request #404 from openinfradev/stack_template_fix
ktkfree Apr 19, 2024
06d17ff
fix workload widget panic
seungkyua Apr 19, 2024
fab65fc
Merge pull request #405 from seungkyua/fix_workload_panic
seungkyua Apr 19, 2024
5665311
bugfix. wrong constant value
cho4036 Apr 19, 2024
4396650
Merge pull request #406 from cho4036/develop
ktkfree Apr 19, 2024
a51341f
policy violation top5
seungkyua Apr 19, 2024
88dac8b
policy violation top5\n endpoint generation
seungkyua Apr 19, 2024
9d19fbc
policy violation top5\n swagger generation
seungkyua Apr 19, 2024
0abb93b
Merge pull request #407 from seungkyua/20240419_policy_violation_top5
seungkyua Apr 19, 2024
4468e9c
파라미터 추출 기능 개선
sangkenlee Apr 21, 2024
067e636
Merge pull request #408 from sangkenlee/enhanced-extract-param
ktkfree Apr 22, 2024
b49ac01
Fix a bug where only the existing leader of a project was deleted if …
seungkyua Apr 22, 2024
1b7a16d
Merge pull request #409 from seungkyua/20240422_project_leader_change
seungkyua Apr 22, 2024
a6b84a4
Template CR 생성 시 포맷팅 개선
sangkenlee Apr 22, 2024
922ce3e
bugfix. fix update-my-profile
cho4036 Apr 22, 2024
dcb7b33
change workload dashboard return type
seungkyua Apr 22, 2024
f02321d
Merge pull request #411 from cho4036/develop
ktkfree Apr 22, 2024
c5b63a1
change workload dashboard return type\n swagger generate
seungkyua Apr 22, 2024
5c16eea
Merge pull request #412 from seungkyua/20240422_change_workload_dashb…
seungkyua Apr 22, 2024
823ad90
Merge pull request #410 from sangkenlee/opa-format
ktkfree Apr 22, 2024
4f12238
bugfix. fix delete tks role API
cho4036 Apr 22, 2024
e669488
Add a search by project name
seungkyua Apr 22, 2024
7b00359
Add a search by project name\n swagger generate
seungkyua Apr 22, 2024
da53a5a
Merge pull request #413 from seungkyua/20240422_search_by_project_name
cho4036 Apr 22, 2024
a2f0337
Merge pull request #414 from cho4036/develop
seungkyua Apr 22, 2024
08f45fa
feature. add policy notification hadlers
ktkfree Apr 22, 2024
0b699d9
Merge pull request #415 from openinfradev/snr_read
ktkfree Apr 22, 2024
91c73f6
trivial. add route policyNotification
ktkfree Apr 23, 2024
1cb2878
Merge pull request #416 from openinfradev/snr_read
ktkfree Apr 23, 2024
c6c2c5d
Gatekeeper 템플릿 스키마에 addtionalProperties가 추가되어 전달되는 버그 수정
sangkenlee Apr 23, 2024
3bb9367
Merge pull request #417 from sangkenlee/addtionalprops-fix
intelliguy Apr 23, 2024
26b7a8c
tkspolicy 필드 변경 params->parameters
sangkenlee Apr 23, 2024
6884030
feature. fix filter bugs
ktkfree Apr 23, 2024
e06d8ec
Merge pull request #418 from sangkenlee/params2parameters
ktkfree Apr 23, 2024
0757ba2
Merge branch 'develop' of https://github.com/openinfradev/tks-api int…
ktkfree Apr 23, 2024
9673e8c
Merge pull request #419 from openinfradev/filter_fix
cho4036 Apr 23, 2024
68b3272
OPA Gatekeeper 전용함수 external_data를 문법 체크 시 정확히 인식
sangkenlee Apr 23, 2024
aca8a1e
Merge pull request #420 from sangkenlee/external-data-check
intelliguy Apr 24, 2024
8af7919
feature. add policy notification to default gernetation
ktkfree Apr 24, 2024
a36c248
ListPolicy에 filledParameter 옵션 추가
sangkeon Apr 24, 2024
68913cf
minor fix. change user deletion from hard to soft
cho4036 Apr 24, 2024
49ec92d
Merge pull request #423 from cho4036/user
ktkfree Apr 24, 2024
3349205
Merge pull request #422 from sangkenlee/list-fill-parameter
ktkfree Apr 24, 2024
3a8d5d2
Merge pull request #421 from openinfradev/minor_fix
cho4036 Apr 24, 2024
9abca25
bugfix. fix update role name error
cho4036 Apr 24, 2024
30b9e84
fix lint error
cho4036 Apr 24, 2024
c07dd97
Merge pull request #424 from cho4036/user
cho4036 Apr 24, 2024
a3e7fa6
trivial. update status when snr deleting
ktkfree Apr 24, 2024
4437d68
Merge pull request #425 from openinfradev/fix_snr
cho4036 Apr 24, 2024
6a2e4c2
temporary logic for master realm to bypass get permissions
cho4036 Apr 24, 2024
9f30650
bugfix. fix update my-profile API
cho4036 Apr 24, 2024
ab33142
minor fix. Ordering Permissions in the order of Read Create Update De…
cho4036 Apr 24, 2024
e0ed7cb
remove unnecessary log
cho4036 Apr 24, 2024
74ea85c
bugfix. Fix merged permission error
cho4036 Apr 24, 2024
6eb5486
tks 요청이 정책에 차단되지 않도록 템플릿 생성 시 가드 추가
sangkenlee Apr 24, 2024
e4f6160
Merge pull request #426 from cho4036/user
ktkfree Apr 25, 2024
5b77b05
feature. add api to audit
ktkfree Apr 25, 2024
853b6dd
Merge pull request #427 from sangkenlee/tks-policy-guard
ktkfree Apr 25, 2024
a4fc290
Merge pull request #428 from openinfradev/fix_snr
ktkfree Apr 25, 2024
fac8202
bugfix. fix permission ordering error
cho4036 Apr 25, 2024
92bc8bd
feature. change audit scheme and remove database constraint
ktkfree Apr 25, 2024
90ea598
Merge pull request #429 from cho4036/user
ktkfree Apr 25, 2024
32d8bef
Merge pull request #431 from openinfradev/audit_fix
ktkfree Apr 25, 2024
0dc9934
trivial. fix typo
ktkfree Apr 25, 2024
5ef6b96
Merge pull request #432 from openinfradev/audit_fix
ktkfree Apr 25, 2024
e4b0bdb
trivial. add organization name to audits
ktkfree Apr 25, 2024
53c4ff8
Merge pull request #433 from openinfradev/fix_audits
ktkfree Apr 25, 2024
655df01
trivial. add favorite field to stack response
ktkfree Apr 25, 2024
b23c457
Merge pull request #434 from openinfradev/fix_favorite
ktkfree Apr 25, 2024
0152704
trivial. add appserveapps count to stack response
ktkfree Apr 25, 2024
990049b
Merge pull request #435 from openinfradev/fix_favorite
ktkfree Apr 25, 2024
318f93d
Add more info when retrieve projects
seungkyua Apr 25, 2024
5b08f01
Add more info when retrieve projects\n swagger generatte
seungkyua Apr 25, 2024
b0234d0
app-serving: make GetLatestTask API work
robertchoi80 Apr 25, 2024
c9d17c8
bugfix: pass value to serializer
robertchoi80 Apr 25, 2024
eb973fe
Merge pull request #436 from seungkyua/20240425_change_projects_function
ktkfree Apr 25, 2024
ca51a45
파라미터 추출 개선, 글로벌 변수 할당 처리
sangkenlee Apr 26, 2024
e4b33a8
feature. personalization systemNotifications
ktkfree Apr 26, 2024
1d20a35
Merge pull request #438 from openinfradev/snr_enhanced
ktkfree Apr 26, 2024
3028867
Merge pull request #437 from sangkenlee/param-extract-global-vars
ktkfree Apr 26, 2024
3ebeed2
feature. change email html
ktkfree Apr 26, 2024
cec7a4a
Merge pull request #439 from openinfradev/html_change
ktkfree Apr 26, 2024
0b70cd8
refactor app-serving APIs
robertchoi80 Apr 26, 2024
27fca66
trivial: adjust indent with gofmt
robertchoi80 Apr 26, 2024
3258d32
trivial. update html temporary_password
ktkfree Apr 26, 2024
d535874
Merge pull request #440 from openinfradev/html_change
ktkfree Apr 26, 2024
6b2e6ee
trivial. add default systemNotificationTemplate when organization cre…
ktkfree Apr 26, 2024
b0bb084
add description column to appserving table
robertchoi80 Apr 26, 2024
1c2e27b
update swagger docs
robertchoi80 Apr 26, 2024
42b4391
fix to update with empty value
cho4036 Apr 28, 2024
1fdcb8d
Merge pull request #443 from cho4036/develop
ktkfree Apr 29, 2024
e6a6f03
Merge pull request #442 from openinfradev/fix-latest-task-api
ktkfree Apr 29, 2024
3ce4f20
Merge pull request #441 from openinfradev/minor_fix
cho4036 Apr 29, 2024
edebf72
bugfix: relate task with parent app on create job
robertchoi80 Apr 29, 2024
7806b7b
Merge pull request #444 from openinfradev/fix-latest-task-api
ktkfree Apr 29, 2024
adfaa0f
feature. add api stack-templates/template-ids
ktkfree Apr 29, 2024
1fc5b56
Merge pull request #445 from openinfradev/add_api_stack_templateIds
ktkfree Apr 29, 2024
3d36c94
feature. policy notifiation
ktkfree Apr 29, 2024
96f2b0a
Merge pull request #446 from openinfradev/policy_notification
ktkfree Apr 29, 2024
b0d49bf
trivial. enable log for policyNotification
ktkfree Apr 29, 2024
75f8e4c
Merge pull request #447 from openinfradev/policy_notification
ktkfree Apr 29, 2024
a92839a
kind 화이트리스트 검증 및 apigroup autofill
sangkeon Apr 29, 2024
1d226ce
템플릿 업데이트 시 동일한 네임 중복체크 에러 수정 등
sangkenlee Apr 29, 2024
f419aeb
trivial. add debug log for policyNotification
ktkfree Apr 30, 2024
3a1a3b7
Merge pull request #450 from openinfradev/policy_fix
ktkfree Apr 30, 2024
bf6b9ef
Merge pull request #449 from sangkenlee/policytemplate-name-check
ktkfree Apr 30, 2024
c3038e3
Merge pull request #448 from sangkenlee/autofill-kind-apigroup
ktkfree Apr 30, 2024
8303c1e
Policy Get에서 NotFound 에러를 별도 처리하지 않도록 수정
sangkenlee Apr 30, 2024
a27a088
Merge pull request #451 from sangkenlee/policy-errorhandling
ktkfree Apr 30, 2024
eec78c6
bugfix: pass project_id on rollbacking app
robertchoi80 Apr 30, 2024
292c485
템플릿 목록 조회(조직)에서 현재 버전과 최신 버전 표시
sangkenlee Apr 30, 2024
996e02f
feature. implemtation policy-violation-log
ktkfree Apr 30, 2024
4877e7c
Merge pull request #454 from openinfradev/policy_fix
ktkfree Apr 30, 2024
4321b06
currentVersion, latestVersion omitempty 제거
sangkenlee Apr 30, 2024
3b4a17f
trivial. resize tks-api logs
ktkfree Apr 30, 2024
717ac6c
Merge pull request #455 from openinfradev/policy_fix
ktkfree Apr 30, 2024
323aac0
Merge pull request #453 from openinfradev/fix-latest-task-api
ktkfree Apr 30, 2024
03fc9c5
trivial. bug fix
ktkfree Apr 30, 2024
5ea0d37
Merge pull request #456 from openinfradev/policy_fix
ktkfree Apr 30, 2024
fc89d2b
tirivial. add policyName to policyNotification
ktkfree Apr 30, 2024
9558ce5
Merge pull request #457 from openinfradev/policy_fix
ktkfree Apr 30, 2024
0b1fb06
policy match kind: nil derefence error fix
sangkenlee Apr 30, 2024
51dd491
Merge pull request #452 from sangkenlee/twoversion-listtemplate
cho4036 Apr 30, 2024
7d5708b
Merge pull request #458 from sangkenlee/policy-matchkind-nilerror
cho4036 Apr 30, 2024
ed18996
policy resource name 중복 체크 api 추가
sangkenlee Apr 30, 2024
00b732d
Merge pull request #459 from sangkenlee/exists-policy-resource-name
Siyeop Apr 30, 2024
7a1d19f
add update stack-template name
cho4036 Apr 30, 2024
aa8b7ef
정책명 업데이트 버그 수정
sangkenlee Apr 30, 2024
6e09809
Merge pull request #461 from sangkenlee/policy-name-update-fix
Siyeop Apr 30, 2024
3dde7c7
Merge pull request #460 from cho4036/develop
ktkfree May 2, 2024
8d77f7e
refactoring: Move user filter logic to separate file for modularity
cho4036 Apr 4, 2024
4febb73
minor fix. lint fix
cho4036 Apr 4, 2024
4a51004
improvement: make more efficient auto-gen code using map rather than …
cho4036 Apr 5, 2024
fd8c758
change permission endpoint mapping
cho4036 May 2, 2024
20903bc
lint fix
cho4036 May 2, 2024
723337d
add get endpoints of permission
cho4036 May 2, 2024
9347811
Merge pull request #462 from cho4036/authorization_endpoint
ktkfree May 2, 2024
fab0cdf
bugfix. fix ordering of auto migration
cho4036 May 2, 2024
2a967cc
Merge pull request #463 from cho4036/authorization_endpoint
ktkfree May 2, 2024
9e7492c
Revert "bugfix. fix ordering of auto migration"
ktkfree May 2, 2024
704c3f4
Merge pull request #464 from openinfradev/revert-463-authorization_en…
ktkfree May 2, 2024
ae3fa78
Revert "Permission-API Endpoint mapping 개선"
ktkfree May 2, 2024
ec7cc9d
Merge pull request #465 from openinfradev/revert-462-authorization_en…
ktkfree May 2, 2024
5bb7630
trivial. fix audit when user failed login
ktkfree May 3, 2024
dbcd7ff
Merge pull request #466 from openinfradev/minor_fix
cho4036 May 3, 2024
80fab70
trivial. add byoh test code
ktkfree May 3, 2024
1925de5
Merge pull request #467 from openinfradev/minor_fix
ktkfree May 3, 2024
951860b
trivial. add api for policy-notification
ktkfree May 3, 2024
772a447
Merge pull request #468 from openinfradev/minor_fix
ktkfree May 3, 2024
ef089bb
trivial. fix typo
ktkfree May 3, 2024
028be98
Merge pull request #469 from openinfradev/minor_fix
ktkfree May 3, 2024
9aecbd0
bugfix: return availableRollback value by GetTasks API
robertchoi80 May 3, 2024
dabc621
fill in return data after sorting
seungkyua May 3, 2024
928bd08
gorm DB 관계 업데이트 시 제외 처리가 안 되어 중복 레코드 삽입시도되는 버그 수정
sangkenlee May 3, 2024
501b6b7
Merge pull request #471 from seungkyua/20240502_change_policy_enforce…
seungkyua May 3, 2024
133a7c9
파라미터 추출 개선(array index를 var로 참조 케이스)
sangkenlee May 6, 2024
e1167a7
Merge pull request #473 from sangkenlee/extract-param-array-varindex
ktkfree May 7, 2024
05af7fa
Merge pull request #470 from openinfradev/fix-latest-task-api
ktkfree May 7, 2024
624efe6
Merge pull request #472 from sangkenlee/policy-dbupdate-fix
ktkfree May 7, 2024
513fad3
trivial. fix marshall error response
ktkfree May 7, 2024
a9a70f4
feature. implementation calculating resources for namespace
ktkfree May 7, 2024
8c5ac83
Merge pull request #475 from openinfradev/namespace_resources
ktkfree May 7, 2024
91bf869
Merge pull request #474 from openinfradev/minor_fix
ktkfree May 7, 2024
9612480
app-serving: remove omitempty tag
robertchoi80 May 7, 2024
7a182b7
feature. add force deleting logic when the cluster status was invalid
ktkfree May 7, 2024
8326bac
bugfix: disable rollback of latest task
robertchoi80 May 7, 2024
40e40a6
feature. send email to all members in organization
ktkfree May 7, 2024
e02144d
Merge pull request #477 from openinfradev/remove-omit-empty
ktkfree May 7, 2024
ae09221
temp-fix: make appserving dashboard not being refreshed for now
robertchoi80 May 7, 2024
443453b
Merge pull request #478 from openinfradev/donot-refresh
ktkfree May 7, 2024
9148fa6
trivial. add attribute to audit
ktkfree May 7, 2024
706b1aa
Merge pull request #479 from openinfradev/audit1
cho4036 May 7, 2024
091c91f
Merge pull request #476 from openinfradev/namespace_resources
cho4036 May 7, 2024
79a0a0f
minor fix. fix url of kubeconfig
cho4036 May 7, 2024
d38123b
Merge pull request #480 from cho4036/develop
ktkfree May 7, 2024
ed56cfb
trivial. disable email on default systemnotification
ktkfree May 8, 2024
01fe96f
Merge pull request #481 from openinfradev/enalbe_email
ktkfree May 8, 2024
b11633a
tirivial. fix typo
ktkfree May 8, 2024
2495843
Merge pull request #482 from openinfradev/enalbe_email
ktkfree May 8, 2024
76621d3
파라미터를 명시하지 않은 정책을 적용할 때 버그 수정
sangkenlee May 8, 2024
4e61ef6
trivial. fix typo error
ktkfree May 9, 2024
62744a4
Merge pull request #483 from sangkenlee/policy-noparam-fix
ktkfree May 9, 2024
73cfae8
Merge pull request #484 from openinfradev/minor_fix
ktkfree May 9, 2024
393902e
feature. add policyName to systemNotification
ktkfree May 9, 2024
e19fa30
Merge pull request #485 from openinfradev/minor_fix
cho4036 May 9, 2024
6347b5f
trivial. fix typo;
ktkfree May 9, 2024
b859e4d
Merge pull request #487 from openinfradev/snr_policy
cho4036 May 9, 2024
e9be2ee
bugfix. fix wrong permission merging
cho4036 May 9, 2024
ca5ef68
feature. fix minor bugs
ktkfree May 9, 2024
0e4cb29
Merge pull request #488 from cho4036/bugfix
ktkfree May 9, 2024
2f4e0e8
Merge pull request #489 from openinfradev/snr_policy
ktkfree May 9, 2024
3e9bf39
trivial. fix messageActionProposal on policy_notifications
ktkfree May 13, 2024
26c8650
Merge pull request #490 from openinfradev/policy_notification_fix
cho4036 May 13, 2024
6eca2a5
trivial. fix filter for policyNotifications
ktkfree May 14, 2024
f185a20
Merge pull request #491 from openinfradev/policy_notification_fix
cho4036 May 14, 2024
d5755c2
데이터 동기화 설정 필드 추가
sangkenlee May 16, 2024
c989fd6
Merge pull request #492 from sangkenlee/policy-sync-data
ktkfree May 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ env:
TAG: ${{github.sha}}

jobs:
build-and-push-image:
build-image:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

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

- name: Login to DockerHub
uses: docker/login-action@v1
Expand Down
38 changes: 15 additions & 23 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,19 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.51.0
args: --timeout=5m
# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true

# Optional: if set to true then the action will use pre-installed Go.
# skip-go-installation: true

# Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true
go-version: "1.21"
cache: false
- name: Install golangci-lint
# Install golangci-lint from source instead of using
# golangci-lint-action to ensure the golangci-lint binary is built with
# the same Go version we're targeting.
# Avoids incompatibility issues such as:
# - https://github.com/golangci/golangci-lint/issues/2922
# - https://github.com/golangci/golangci-lint/issues/2673
# - https://github.com/golangci/golangci-lint-action/issues/442
run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Run golangci-lint
run: golangci-lint run --verbose --out-format=github-actions
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ web
main
output
vendor
go.work
go.work.sum
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Build - backend
FROM --platform=linux/amd64 docker.io/library/golang:1.18-buster AS backend-build
FROM --platform=linux/amd64 docker.io/library/golang:1.21 AS backend-build
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
RUN wget https://github.com/swaggo/swag/releases/download/v1.7.1/swag_linux_amd64.tar.gz -O - | tar -xz -C /tmp && cp /tmp/swag_linux_amd64/swag /usr/local/bin
RUN wget https://github.com/swaggo/swag/releases/download/v1.16.3/swag_1.16.3_Linux_amd64.tar.gz -O - | tar -xz -C /tmp && cp /tmp/swag /usr/local/bin

WORKDIR /app/backend
COPY ./ .

RUN go mod tidy
RUN swag init -g ./cmd/server/main.go --parseDependency --parseInternal -o ./api/swagger
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/server ./cmd/server/main.go

ENV TZ=Asia/Seoul
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: docs
docs:
swag init -g ./cmd/server/main.go -o ./api/swagger
swag init -g ./cmd/server/main.go --parseDependency --parseInternal -o ./api/swagger
swag fmt

.PHONY: build
build:
Expand All @@ -17,6 +18,7 @@ test:

.PHONY: dev_run
dev_run:
swag init -g ./cmd/server/main.go -o ./api/swagger
swag init -g ./cmd/server/main.go --parseDependency --parseInternal -o ./api/swagger
swag fmt
go build ./cmd/server/main.go
./main
Loading
Loading