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

241015 main from release ( v3.2.1 ) #545

Merged
merged 830 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
830 commits
Select commit Hold shift + click to select a range
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
b5cb7f0
Merge pull request #493 from openinfradev/develop
ktkfree May 17, 2024
faf2f8e
add cluster access control in permission obj
cho4036 May 14, 2024
da326a0
add cluster admin setting on cluster creation
cho4036 May 17, 2024
a7e9622
add cluster admin setting on apppending/removing on the role
cho4036 May 17, 2024
4320bbc
add cluster admin setting on removing on the role
cho4036 May 17, 2024
3b1f78e
add cluster admin setting on editting user role
cho4036 May 17, 2024
c89a1a9
bugfix.
cho4036 May 17, 2024
798cd22
app-serving: collect app pod log
robertchoi80 May 17, 2024
42780ba
update swagger docs
robertchoi80 May 20, 2024
eb1f639
trivial: rename log to podLog
robertchoi80 May 20, 2024
2957311
trivial: fix lint error
robertchoi80 May 20, 2024
fe25e15
Merge pull request #494 from cho4036/develop
ktkfree May 21, 2024
7e653b4
Merge pull request #495 from openinfradev/tks-issues-1110
ktkfree May 21, 2024
4242cf0
Merge pull request #496 from openinfradev/develop
ktkfree May 21, 2024
16e9faf
trivial. update validation rule for user & organization
ktkfree May 21, 2024
7b8a304
trivial. add validation rule when organization creating
ktkfree May 21, 2024
73bb151
Merge pull request #497 from openinfradev/minor_fix
ktkfree May 21, 2024
f14d2a1
권한부여하지 않은 tks 템플릿 사용 불가하도록 수정
sangkenlee May 21, 2024
505e7e9
trivial. fix user filter for organizations
ktkfree May 21, 2024
e0c8cd8
Merge pull request #498 from sangkenlee/tkstemplate-only-permitted
ktkfree May 21, 2024
419a724
Merge pull request #499 from openinfradev/minor_fix
ktkfree May 21, 2024
3e417da
Merge pull request #500 from openinfradev/develop
ktkfree May 21, 2024
a3be5c5
bugfix. TKS관리자 생성시 발생하는 502 에러 수정
cho4036 May 22, 2024
a4ba3b9
bugfix. TKS관리자 생성시 비밀번호 임시화
cho4036 May 22, 2024
3d0a42d
Merge pull request #501 from cho4036/release
seungkyua May 22, 2024
961f9fc
trivial. change alarm name to warning from audit
ktkfree May 22, 2024
1e6ee1c
Merge pull request #502 from openinfradev/snr_policy
cho4036 May 22, 2024
2d809ca
trivial. change snr policy type
ktkfree May 22, 2024
fb7286e
Merge pull request #503 from openinfradev/snr_policy
ktkfree May 22, 2024
552526b
policy guard rule audit bugfix
sangkenlee May 22, 2024
bee0b5a
bugfix. make kubeconfig lowercase
cho4036 May 23, 2024
bc7860d
change kubeConfig / kube-config -> kubeconfig
cho4036 May 23, 2024
b3a5a73
trivial.
cho4036 May 23, 2024
0906ad3
Merge pull request #504 from sangkenlee/policy-guardrule-fix
ktkfree May 23, 2024
91546b9
Merge pull request #505 from cho4036/release
ktkfree May 23, 2024
892f96e
Merge pull request #506 from openinfradev/develop
ktkfree May 23, 2024
a42ed8e
trivial. add debug log
ktkfree May 23, 2024
886c7a5
Merge pull request #507 from openinfradev/add_debug
ktkfree May 23, 2024
d2c825c
feature. fix bug - policy violation
ktkfree May 23, 2024
a723173
Merge pull request #508 from openinfradev/add_debug
cho4036 May 23, 2024
f4e3a1f
trivial. fix error for policyViolationTop5
ktkfree May 23, 2024
bff70db
Merge pull request #509 from openinfradev/add_debug
ktkfree May 23, 2024
ede08c0
trivial. fix error code for thanosclient
ktkfree May 23, 2024
cd0d093
Merge pull request #510 from openinfradev/add_debug
cho4036 May 23, 2024
2bedb1b
Merge pull request #511 from openinfradev/release
ktkfree May 23, 2024
2d8134a
정책 api match kind 타입 변경
sangkenlee May 23, 2024
291cc7c
템플릿 유형(kind) 검증 정규식 수정
sangkenlee May 23, 2024
c659f9f
템플릿, 템플릿 버전 저장 시 rego 문법 validation
sangkenlee May 26, 2024
c2dcae0
lint 에러 수정
sangkenlee May 26, 2024
3d4f239
Merge pull request #514 from sangkenlee/rego-check-on-create-template
ktkfree May 28, 2024
c4e6785
Merge pull request #513 from sangkenlee/template-kind-validation
ktkfree May 28, 2024
2c5f316
Merge pull request #512 from sangkenlee/match-kind-fix
ktkfree May 28, 2024
02d6391
trivial. fix cluster site-value bug
ktkfree May 28, 2024
058ace3
Merge pull request #515 from openinfradev/minor_fix
ktkfree May 28, 2024
0fdb646
Merge pull request #516 from openinfradev/release
ktkfree May 28, 2024
3b0a770
GetOrgTemplate에서 현재 적용된 템플릿 버전 조회 가능하도록 수정
sangkenlee Jun 8, 2024
9858b5a
일부 코드에서 템플릿 최신 버전 조회 버그 수정
sangkenlee Jun 8, 2024
3d6ded4
파라미터 추출 rego v1 패턴 처리 개선
sangkenlee Jun 8, 2024
3c61f41
오타수정
sangkenlee Jun 17, 2024
16397ad
Merge pull request #520 from sangkenlee/typo
ktkfree Jun 18, 2024
73dd7be
Merge pull request #519 from sangkenlee/param-extract-rego-v1
ktkfree Jun 18, 2024
daa6db6
Merge pull request #518 from sangkenlee/latest-version-bugfix
ktkfree Jun 18, 2024
41d0e59
Merge pull request #517 from sangkenlee/get-org-template-current-version
ktkfree Jun 18, 2024
80f4c71
Merge pull request #521 from openinfradev/release
ktkfree Jun 18, 2024
8e117fc
Permitted Org가 할당 안 된 경우 전체 조직이 Permitted Org에 표시되는 버그 수정
sangkeon Jun 19, 2024
7faca3f
Merge pull request #522 from sangkenlee/permitted-org-fix
ktkfree Jun 19, 2024
3c93859
trivial: increase num of log lines
robertchoi80 Jun 24, 2024
3a95d6d
Merge pull request #523 from openinfradev/increase-log-lines
ktkfree Jun 25, 2024
397aaeb
feature. implementation resume scenario when byoh cluster installing
ktkfree Jun 25, 2024
da099b7
Merge pull request #524 from openinfradev/resume
cho4036 Jun 26, 2024
06add22
trivial. change stopped status
ktkfree Jun 26, 2024
161b83b
Merge pull request #525 from openinfradev/resume
cho4036 Jun 26, 2024
9889a37
tirivial. change stop status
ktkfree Jun 26, 2024
e0e691f
Merge pull request #526 from openinfradev/resume
cho4036 Jun 26, 2024
68ababc
feature. add api IsPausedWorkflow
ktkfree Jul 2, 2024
610554b
Merge pull request #528 from openinfradev/argo
ktkfree Jul 2, 2024
8c2e717
feature. add domains to createCluster
ktkfree Jul 4, 2024
67b7f7a
Merge pull request #529 from openinfradev/domains
cho4036 Jul 4, 2024
16f5758
trivial. add clusterDomains to sitevalues api
ktkfree Jul 8, 2024
6585574
feature. change model clusterdomains
ktkfree Jul 10, 2024
53a19bf
Merge pull request #530 from openinfradev/domains
ktkfree Jul 10, 2024
2a8bd68
trivial. minor fixes
ktkfree Jul 11, 2024
747c792
Merge pull request #531 from openinfradev/domains
ktkfree Jul 11, 2024
e3c37c5
trivial. fix parameters for creating lma
ktkfree Jul 16, 2024
2d255a5
feature. add domain to clusterDomains
ktkfree Jul 16, 2024
18e2e42
Merge pull request #532 from openinfradev/domains
ktkfree Jul 16, 2024
c5b9d4b
trivial. fix minor bug
ktkfree Jul 16, 2024
6a05ec4
Merge pull request #533 from openinfradev/domains
ktkfree Jul 16, 2024
9cfd907
feature. add import api to stacks resource
ktkfree Jul 17, 2024
1679c30
Merge pull request #534 from openinfradev/byok
cho4036 Jul 17, 2024
a48427c
feature. add import api to stacks resource
ktkfree Jul 17, 2024
eacd1fd
Merge branch 'develop' into byok
ktkfree Jul 18, 2024
2ca311d
Merge pull request #535 from openinfradev/byok
ktkfree Jul 18, 2024
0e39cdf
trivial. change type to string from []byte for kubeconfig
ktkfree Jul 18, 2024
d08395d
Merge pull request #536 from openinfradev/byok1
ktkfree Jul 18, 2024
c72fee6
trivial. change type to string from []byte for kubeconfig
ktkfree Jul 18, 2024
8e0a648
Merge pull request #537 from openinfradev/byok1
ktkfree Jul 22, 2024
54c0aca
feature. add GetCloudServices to stack-template API
ktkfree Jul 23, 2024
e01210e
Merge pull request #538 from openinfradev/byok1
ktkfree Jul 23, 2024
198c35e
feature. add pprof for profiling
ktkfree Jul 24, 2024
70b7c8e
Merge pull request #539 from openinfradev/byok2
cho4036 Jul 24, 2024
1f4e342
trivial. remove omitempty for getStack response
ktkfree Jul 26, 2024
c6aef44
Merge pull request #540 from openinfradev/byok2
ktkfree Jul 26, 2024
8d06514
trivial. change deliminator for domains
ktkfree Sep 6, 2024
ff8c88d
Merge pull request #541 from openinfradev/domain
ktkfree Sep 6, 2024
c395381
trivial. change deliminator for domains
ktkfree Sep 6, 2024
1b3c599
Merge pull request #542 from openinfradev/domain
ktkfree Sep 9, 2024
94bf5e2
trivial. fix lint error
ktkfree Oct 2, 2024
ed1af0f
Merge pull request #544 from openinfradev/minor_fix
ktkfree Oct 2, 2024
10ad5bf
Merge pull request #543 from openinfradev/develop
ktkfree Oct 2, 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