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

Staging #54

Merged
merged 23 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
15e995b
feat: retrieve repo additional infos
coding-convention Nov 9, 2023
2548177
Merge remote-tracking branch 'origin/staging' into staging
coding-convention Nov 9, 2023
b313439
feat: retrieve repo additional infos
coding-convention Nov 10, 2023
7e5a5d7
feat: retrieve repo additional infos
coding-convention Nov 10, 2023
4d93233
feat: retrieve instance infos
coding-convention Nov 10, 2023
3145c16
fix: typo
coding-convention Nov 11, 2023
669fdd4
fix: typo
coding-convention Nov 12, 2023
4d802b8
fix: annotation은 알다가도 모르겠다 정말
coding-convention Nov 14, 2023
47c1928
feat : template 배포 controller 추가
nookcoder Nov 17, 2023
b40a8a3
feat : add isTemplate from AwsBluePrintDto
nookcoder Nov 17, 2023
6c71e10
feat : add isTemplate in AwsBluePrintListDto
nookcoder Nov 17, 2023
82624d1
update : bool -> Boolean in AwsBluePrintListDto
nookcoder Nov 17, 2023
ded642c
feat: infracost api
coding-convention Nov 18, 2023
336a1f6
Merge remote-tracking branch 'origin/staging' into staging
coding-convention Nov 18, 2023
d5dfd3b
feat: infracost api
coding-convention Nov 18, 2023
d53c02a
feat: infracost api
coding-convention Nov 18, 2023
d8c9189
chore: message logger
coding-convention Nov 19, 2023
bae727d
feat : add template name
nookcoder Nov 19, 2023
d741dd5
Merge branch 'staging' of https://github.com/sw-maestro-kumofactory/k…
nookcoder Nov 19, 2023
f0ff911
fix : template 이름 저장 안되는 오류 수정
nookcoder Nov 21, 2023
72ec41b
fix : update text length of description
nookcoder Nov 23, 2023
9e1d7ba
feat : blueprint 삭제로직 추가
nookcoder Nov 23, 2023
e206b82
Merge branch 'main' into staging
nookcoder Nov 24, 2023
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
19 changes: 0 additions & 19 deletions .github/workflows/Prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,6 @@ jobs:
run: |
docker push ${{ secrets.ECR_REGISTRY }}/prod:latest

deploy:
needs: build-and-push
runs-on: ubuntu-latest

steps:
- name: Deploy on Staging Server
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.AWS_STAGING }}
username: ${{ secrets.AWS_SSH_USERNAME }}
key: ${{ secrets.AWS_SSH_KEY }}
script_stop: true
script: |
cd /app
password=$(aws ecr get-login-password --region ${{ env.REGION }})
docker login --username AWS --password $password ${{ secrets.ECR_REGISTRY }}
docker-compose pull
docker-compose up -d

# notification:
# needs: deploy
# runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ out/

### VS Code ###
.vscode/
http/*
http/*
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,18 @@ public Flux<ServerSentEvent<String>> getBuildStatus(@PathVariable("instanceId")
return buildRequestService.getBuildStatus(instanceId);
}

@PostMapping("/deployAsync/v2")
@AuthorizationFromToken
public ResponseEntity<String> deployRequestAsyncV2(@RequestBody BuildRequestDto request, String userId) {
CompletableFuture.runAsync(() -> buildRequestService.RequestBuildAsync2(request, userId));
return ResponseEntity.ok("Request Delivered");
}
@PostMapping("/deployAsync/v2")
@AuthorizationFromToken
public ResponseEntity<String> deployRequestAsyncV2(@RequestBody BuildRequestDto request, String userId) {
CompletableFuture.runAsync(() -> buildRequestService.RequestBuildAsync2(request, userId));
return ResponseEntity.ok("Request Delivered");
}

@GetMapping("/info")
@AuthorizationFromToken
public ResponseEntity<String> instanceInfo(@RequestParam("instanceId") String instanceId, String userId) {

return ResponseEntity.ok(buildRequestService.getInstanceInfo(instanceId));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ public class BuildLog {
private String repository;
private String branch;
private Object logs;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ public record RepoInfoDto(
@JsonProperty("name") String name,
@JsonProperty("fullName") String fullName,
@JsonProperty("private") Boolean isPrivate,
@JsonProperty("fork") Boolean isFork
) {
}
@JsonProperty("fork") Boolean isFork,
@JsonProperty("forksCount") Integer forksCount,
@JsonProperty("description") String description,
@JsonProperty("language") String language,
@JsonProperty("stargazersUrl") String stargazersUrl,
@JsonProperty("starCount") Integer starCount,
@JsonProperty("openIssuesCount") Integer openIssuesCount,
@JsonProperty("visibility") String visibility,
@JsonProperty("updatedAt") String updatedAt,
@JsonProperty("createdAt") String createdAt

) { }

public record UserDto(
// @JsonProperty("personal_repo_count") Integer personalRepoCount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface BuildRequestService {

Flux<ServerSentEvent<String>> RequestBuildAsync(BuildRequestDto request, String oauthId);

void RequestBuildAsync2(BuildRequestDto request, String oauthId);
Flux<ServerSentEvent<String>> getBuildStatus(String instanceId);
String getInstanceInfo(String instanceId);

Flux<ServerSentEvent<String>> getBuildStatus(String instanceId);
}
Loading
Loading