File tree 1 file changed +9
-17
lines changed
1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: APPCD Diff check
2
2
on :
3
3
push :
4
4
branches :
5
- - feature/sks-test
5
+ - feature/move_to_action
6
6
pull_request :
7
7
branches :
8
8
- main
@@ -19,25 +19,17 @@ jobs:
19
19
ref : main
20
20
path : main_branch
21
21
fetch-depth : 1
22
- - name : Generate IaC from Main Branch
22
+ - name : Generate IAC
23
23
env :
24
24
APPCD_TOKEN : ${{ secrets.APPCD_TOKEN }}
25
25
APPCD_URL : ${{ secrets.APPCD_URL }}
26
- run : |
27
- docker pull ghcr.io/appcd-dev/appcd-dist/appcd-cli:cli
28
- mkdir -p artifact/main/ ./artifact/tmp
29
- docker run --rm \
30
- --workdir=/app/scan \
31
- -e APPCD_TOKEN=$APPCD_TOKEN \
32
- -e APPCD_URL=$APPCD_URL \
33
- -v ./main_branch:/app/scan \
34
- -v ./artifact/tmp:/tmp \
35
- -v ./artifact/main:/artifact/main \
36
- --entrypoint=appcd \
37
- ghcr.io/appcd-dev/appcd-dist/appcd-cli:cli \
38
- generate --log 2 --output=/artifact/main/.appcd/charts
39
- cd artifact/main/.appcd/charts
40
- unzip scan.zip && rm scan.zip && ls -latr && pwd
26
+ uses : appcd-dev/action@v0.0.1
27
+ with :
28
+ cloud : ' aws'
29
+ language : ' Python'
30
+ outputDir : ' ./.appcd/charts'
31
+ scanPath : ' ./main_branch'
32
+ targetCompute : ' k8s'
41
33
- name : Upload logs
42
34
uses : actions/upload-artifact@v2
43
35
with :
You can’t perform that action at this time.
0 commit comments