try appcd on push #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: APPCD IAC check | |
on: | |
push: | |
branches: | |
- main | |
- feature/appcd-generate | |
pull_request: | |
branches: | |
- main | |
jobs: | |
generate-iac-artifacts: | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Main Branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Generate IAC for main branch | |
env: | |
APPCD_TOKEN: ${{ secrets.APPCD_TOKEN }} | |
APPCD_URL: ${{ secrets.APPCD_URL }} | |
uses: appcd-dev/generate-action@v0 | |
with: | |
outputDir: './.appcd/infra' | |
targetCompute: 'k8s' | |
- name: Upload main artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: iac_artifacts | |
path: .appcd/infra |