File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,20 @@ jobs:
1919 - name : Login to docker
2020 run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
2121 - name : Generate IaC from Main Branch
22+ env :
23+ APPCD_TOKEN : ${{ secrets.APPCD_TOKEN }}
24+ APPCD_URL : ${{ secrets.APPCD_URL }}
2225 run : |
2326 mkdir -p artifact/main/
2427 docker run --rm \
2528 --workdir=/code \
29+ -e APPCD_TOKEN=$APPCD_TOKEN \
30+ -e APPCD_URL=$APPCD_URL \
2631 -v ./main_branch:/code \
2732 -v ./artifact/main:/artifact/main \
2833 --entrypoint=appcd \
2934 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
3136 cd artifact/main/.appcd/charts
3237 unzip DogeAPI.zip && rm DogeAPI.zip
3338 - name : Checkout PR Branch
4954 --workdir=/code \
5055 -v ./pr_branch/:/code \
5156 -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 \
5259 --entrypoint=appcd \
5360 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
5562 cd artifact/${{ steps.extract_branch.outputs.branch }}/.appcd/charts
5663 unzip DogeAPI.zip && rm DogeAPI.zip
5764 - name : Copy infrastructure files if empty
You can’t perform that action at this time.
0 commit comments