Skip to content

Commit bbb46f2

Browse files
committed
docker build
1 parent c859ab7 commit bbb46f2

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/docker-publish.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,20 @@ jobs:
9292
- name: Create required directories
9393
run: mkdir -p .appcd/charts && chmod 777 .appcd -R
9494

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'
104106
- name: Inflate helm chart in gitops/
105107
run: |
108+
tree
106109
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
107110
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
108111
else

0 commit comments

Comments
 (0)