Skip to content

Commit b55b4b7

Browse files
committed
See if action does work
1 parent 2c40353 commit b55b4b7

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

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

+9-17
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: APPCD Diff check
22
on:
33
push:
44
branches:
5-
- feature/sks-test
5+
- feature/move_to_action
66
pull_request:
77
branches:
88
- main
@@ -19,25 +19,17 @@ jobs:
1919
ref: main
2020
path: main_branch
2121
fetch-depth: 1
22-
- name: Generate IaC from Main Branch
22+
- name: Generate IAC
2323
env:
2424
APPCD_TOKEN: ${{ secrets.APPCD_TOKEN }}
2525
APPCD_URL: ${{ secrets.APPCD_URL }}
26-
run: |
27-
docker pull ghcr.io/appcd-dev/appcd-dist/appcd-cli:cli
28-
mkdir -p artifact/main/ ./artifact/tmp
29-
docker run --rm \
30-
--workdir=/app/scan \
31-
-e APPCD_TOKEN=$APPCD_TOKEN \
32-
-e APPCD_URL=$APPCD_URL \
33-
-v ./main_branch:/app/scan \
34-
-v ./artifact/tmp:/tmp \
35-
-v ./artifact/main:/artifact/main \
36-
--entrypoint=appcd \
37-
ghcr.io/appcd-dev/appcd-dist/appcd-cli:cli \
38-
generate --log 2 --output=/artifact/main/.appcd/charts
39-
cd artifact/main/.appcd/charts
40-
unzip scan.zip && rm scan.zip && ls -latr && pwd
26+
uses: appcd-dev/action@v0.0.1
27+
with:
28+
cloud: 'aws'
29+
language: 'Python'
30+
outputDir: './.appcd/charts'
31+
scanPath: './main_branch'
32+
targetCompute: 'k8s'
4133
- name: Upload logs
4234
uses: actions/upload-artifact@v2
4335
with:

0 commit comments

Comments
 (0)