File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,20 @@ jobs:
19
19
- name : Login to docker
20
20
run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
21
21
- name : Generate IaC from Main Branch
22
+ env :
23
+ APPCD_TOKEN : ${{ secrets.APPCD_TOKEN }}
24
+ APPCD_URL : ${{ secrets.APPCD_URL }}
22
25
run : |
23
26
mkdir -p artifact/main/
24
27
docker run --rm \
25
28
--workdir=/code \
29
+ -e APPCD_TOKEN=$APPCD_TOKEN \
30
+ -e APPCD_URL=$APPCD_URL \
26
31
-v ./main_branch:/code \
27
32
-v ./artifact/main:/artifact/main \
28
33
--entrypoint=appcd \
29
34
ghcr.io/appcd-dev/appcd-dist/appcd-cli:v0.9.1 \
30
- generate --lang Python --output=artifact/main/.appcd/charts --iac-type Helm
35
+ generate --mode ci -- lang Python --output=artifact/main/.appcd/charts --iac-type Helm
31
36
cd artifact/main/.appcd/charts
32
37
unzip DogeAPI.zip && rm DogeAPI.zip
33
38
- name : Checkout PR Branch
49
54
--workdir=/code \
50
55
-v ./pr_branch/:/code \
51
56
-v ./artifact/${{ steps.extract_branch.outputs.branch }}:/artifact/${{ steps.extract_branch.outputs.branch }} \
57
+ -e APPCD_TOKEN=$APPCD_TOKEN \
58
+ -e APPCD_URL=$APPCD_URL \
52
59
--entrypoint=appcd \
53
60
ghcr.io/appcd-dev/appcd-dist/appcd-cli:v0.9.1 \
54
- generate --lang Python --iac-type Helm --output=artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts
61
+ generate --mode ci -- lang Python --iac-type Helm --output=artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts
55
62
cd artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts
56
63
unzip DogeAPI.zip && rm DogeAPI.zip
57
64
- name : Copy infrastructure files if empty
You can’t perform that action at this time.
0 commit comments