File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -92,17 +92,20 @@ jobs:
92
92
- name : Create required directories
93
93
run : mkdir -p .appcd/charts && chmod 777 .appcd -R
94
94
95
- - name : run appCD
96
- run : |
97
- docker run --rm \
98
- --workdir=/app/scan \
99
- -v $PWD:/app/scan ghcr.io/appcd-dev/appcd-dist/appcd-cli:cli \
100
- generate --lang Python --output=/code/.appcd/charts
101
- cd .appcd/charts && ls
102
- unzip DogeAPI.zip && rm DogeAPI.zip
103
-
95
+ - name : Generate IAC for main branch
96
+ env :
97
+ APPCD_TOKEN : ${{ secrets.APPCD_TOKEN }}
98
+ APPCD_URL : ${{ secrets.APPCD_URL }}
99
+ uses : appcd-dev/action@v0.0.1
100
+ with :
101
+ cloud : ' aws'
102
+ language : ' Python'
103
+ outputDir : ' ./.appcd/charts'
104
+ scanPath : ' ./main_branch'
105
+ targetCompute : ' k8s'
104
106
- name : Inflate helm chart in gitops/
105
107
run : |
108
+ tree
106
109
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
107
110
helm template demo-chart ./.appcd/charts/dogeapi -f ./.appcd/overrides/dogeapi/values.yaml --set image.tag=${{ steps.version.outputs.image_tag }} > ./gitops/prod/dogeapi.yaml
108
111
else
You can’t perform that action at this time.
0 commit comments