Skip to content

Commit

Permalink
test: k3s deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Aug 27, 2024
1 parent 8bdef83 commit 53a2827
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/k3s-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ jobs:
volumes:
- name: secret-volume
secret:
secretName: app-secret-dev
secretName: app-secret-$TARGET
- name: log-volume
hostPath:
path: /${{ env.DEPLOY_TARGET }}/log/$MODULE
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k3s-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ jobs:
volumes:
- name: secret-volume
secret:
secretName: app-secret-prod
secretName: app-secret-$TARGET
- name: log-volume
hostPath:
path: /${{ env.DEPLOY_TARGET }}/log/$MODULE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public boolean supportsParameter(MethodParameter parameter) {
public Long resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception {
try {
var securityContext = SecurityContextHolder.getContext();
log.info("?");
var memberId = Optional.ofNullable(securityContext).map(it -> it.getAuthentication().getName()).orElseThrow(() -> new BaseCustomException(UNAUTHORIZED_USER));
return Long.parseLong(memberId);
} catch (Exception e) {
Expand Down

0 comments on commit 53a2827

Please sign in to comment.