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

cdk build action added #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 20 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,28 @@ on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build
build-cdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build CDK
run: npm install && npm run build

build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: cd app && docker build . -t sonarqube-fargate-cdk:$(date +%s)

sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Sonarqube on Fargate with CDK

[![Build](https://github.com/DevSecOpsSamples/sonarqube-fargate-cdk/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/DevSecOpsSamples/sonarqube-fargate-cdk/actions/workflows/build.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=DevSecOpsSamples_sonarqube-fargate-cdk&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=DevSecOpsSamples_sonarqube-fargate-cdk) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=DevSecOpsSamples_sonarqube-fargate-cdk&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=DevSecOpsSamples_sonarqube-fargate-cdk)

## Overview
Expand Down
Empty file modified app/build.sh
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ sonarqube {
property "sonar.projectName", "sonarqube-fargate-cdk"
property "sonar.projectKey", "DevSecOpsSamples_sonarqube-fargate-cdk"
property "sonar.organization", "devsecopssamples"
property "sonar.host.url", "https://sonarcloud.io"
// property "sonar.host.url", "https://sonarcloud.io"
// property "sonar.host.url", "http://127.0.0.1:9000"
property "sonar.host.url", "http://34.117.194.63/"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.sources", "."
property "sonar.exclusions", "**/node_modules/**, **/cdk.out/**"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "cdk-ecs-ec2",
"name": "sonarqube-fargate-cdk",
"version": "0.1.0",
"bin": {
"cluster": "ecs-ec2-cluster/bin/index.js"
Expand All @@ -17,7 +17,7 @@
"jest": "^26.4.2",
"ts-jest": "^26.2.0",
"ts-node": "^9.0.0",
"typescript": "~3.9.7"
"typescript": "^4.9.4"
},
"dependencies": {
"@types/js-yaml": "4.0.5",
Expand Down