Skip to content

Commit 229e4ad

Browse files
committed
upload logs
1 parent 0721a69 commit 229e4ad

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/appcd-iac-pr-diff.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ jobs:
2525
run: |
2626
mkdir -p artifact/main/
2727
docker run --rm \
28-
--workdir=/code \
28+
--workdir=/app/scan \
2929
-e APPCD_TOKEN=$APPCD_TOKEN \
30+
-v ./tmp:/tmp \
3031
-e APPCD_URL=$APPCD_URL \
3132
-v ./main_branch:/app/scan \
3233
-v ./artifact/main:/artifact/main \
@@ -35,6 +36,11 @@ jobs:
3536
generate --mode ci --lang Python --output=/artifact/main/.appcd/charts --iac-type Helm
3637
cd artifact/main/.appcd/charts
3738
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
3844
- name: Checkout PR Branch
3945
uses: actions/checkout@v4
4046
with:
@@ -53,16 +59,22 @@ jobs:
5359
run: |
5460
mkdir -p artifact/${{ steps.extract_branch.outputs.branch }}/
5561
docker run --rm \
56-
--workdir=/code \
62+
--workdir=/app/scan \
5763
-v ./pr_branch/:/app/scan \
5864
-v ./artifact/${{ steps.extract_branch.outputs.branch }}:/artifact/${{ steps.extract_branch.outputs.branch }} \
65+
-v ./tmp:/tmp \
5966
-e APPCD_TOKEN=$APPCD_TOKEN \
6067
-e APPCD_URL=$APPCD_URL \
6168
--entrypoint=appcd \
6269
ghcr.io/appcd-dev/appcd-dist/appcd-cli:v0.9.1 \
6370
generate --mode ci --lang Python --iac-type Helm --output=/artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts
6471
cd artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts
6572
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
6678
- name: Copy infrastructure files if empty
6779
run: |
6880
cd pr_branch

0 commit comments

Comments
 (0)