Skip to content

Commit e0d3c49

Browse files
authored
Merge branch 'master' into develop
2 parents 5764a52 + 71271c3 commit e0d3c49

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- develop
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 11
21+
- name: Cache SonarCloud packages
22+
uses: actions/cache@v1
23+
with:
24+
path: ~/.sonar/cache
25+
key: ${{ runner.os }}-sonar
26+
restore-keys: ${{ runner.os }}-sonar
27+
- name: Cache Gradle packages
28+
uses: actions/cache@v1
29+
with:
30+
path: ~/.gradle/caches
31+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
32+
restore-keys: ${{ runner.os }}-gradle
33+
- name: Build and analyze
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
36+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
37+
run: ./gradlew build sonarqube --info

clean-up.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
echo "[1/4] destroy ecs-restapi-service"
2+
cd ecs-restapi-service
3+
cdk destroy
4+
5+
echo "[2/4] destroy ecs-ec2-cluster"
6+
cd ../ecs-ec2-cluster
7+
cdk destroy
8+
9+
echo "[3/4] destroy ecs-iam-role"
10+
cd ../ecs-iam-role
11+
cdk destroy
12+
13+
echo "[4/4] destroy vpc"
14+
cd ../vpc
15+
cdk destroy
16+
17+
find . -name "cdk.context.json" -exec rm -f {} \;

0 commit comments

Comments
 (0)