File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 25
25
run : |
26
26
mkdir -p artifact/main/
27
27
docker run --rm \
28
- --workdir=/code \
28
+ --workdir=/app/scan \
29
29
-e APPCD_TOKEN=$APPCD_TOKEN \
30
+ -v ./tmp:/tmp \
30
31
-e APPCD_URL=$APPCD_URL \
31
32
-v ./main_branch:/app/scan \
32
33
-v ./artifact/main:/artifact/main \
35
36
generate --mode ci --lang Python --output=/artifact/main/.appcd/charts --iac-type Helm
36
37
cd artifact/main/.appcd/charts
37
38
unzip code.zip && rm code.zip
39
+ - name : Upload logs
40
+ uses : actions/upload-artifact@v2
41
+ with :
42
+ name : analyzer_logs_1
43
+ path : tmp
38
44
- name : Checkout PR Branch
39
45
uses : actions/checkout@v4
40
46
with :
@@ -53,16 +59,22 @@ jobs:
53
59
run : |
54
60
mkdir -p artifact/${{ steps.extract_branch.outputs.branch }}/
55
61
docker run --rm \
56
- --workdir=/code \
62
+ --workdir=/app/scan \
57
63
-v ./pr_branch/:/app/scan \
58
64
-v ./artifact/${{ steps.extract_branch.outputs.branch }}:/artifact/${{ steps.extract_branch.outputs.branch }} \
65
+ -v ./tmp:/tmp \
59
66
-e APPCD_TOKEN=$APPCD_TOKEN \
60
67
-e APPCD_URL=$APPCD_URL \
61
68
--entrypoint=appcd \
62
69
ghcr.io/appcd-dev/appcd-dist/appcd-cli:v0.9.1 \
63
70
generate --mode ci --lang Python --iac-type Helm --output=/artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts
64
71
cd artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts
65
72
unzip code.zip && rm code.zip
73
+ - name : Upload logs
74
+ uses : actions/upload-artifact@v2
75
+ with :
76
+ name : analyzer_logs_2
77
+ path : tmp
66
78
- name : Copy infrastructure files if empty
67
79
run : |
68
80
cd pr_branch
You can’t perform that action at this time.
0 commit comments