fix: lambda zip shuold be created from code ci #31
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: Pulumi Preview | |
on: | |
pull_request: | |
paths: | |
- pulumi/** | |
- app/** | |
- .github/workflows/pulumi-preview.yml | |
concurrency: | |
group: ghas-erfiume-pulumi-preview-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
python-ci-app: | |
uses: notdodo/github-actions/.github/workflows/[email protected] | |
with: | |
poetry-version: latest | |
python-version: 3.12 | |
working-directory: "./app" | |
python-ci-pulumi: | |
uses: notdodo/github-actions/.github/workflows/[email protected] | |
with: | |
poetry-version: latest | |
python-version: 3.12 | |
working-directory: "./pulumi" | |
pulumi-preview: | |
name: Pulumi Preview | |
runs-on: ubuntu-latest | |
needs: [python-ci-pulumi, python-ci-app] | |
permissions: | |
contents: read | |
pull-requests: write | |
id-token: write | |
defaults: | |
run: | |
working-directory: ./pulumi | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 | |
# v4.2.0 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 | |
# v5.2.0 | |
with: | |
python-version: 3.12 | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 | |
# v4.0.2 | |
with: | |
path: ~/.local | |
key: poetry-latest | |
- uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a | |
# v1.4.1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- id: cache-deps | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 | |
# v4.0.2 | |
with: | |
path: .venv | |
key: python-3.12-poetry-${{ hashFiles('**/poetry.lock') }} | |
- run: poetry install | |
if: steps.cache-deps.outputs.cache-hit != 'true' | |
- uses: pulumi/auth-actions@80dec0d5e009a11565cbf87d9ef9103fc7d24198 | |
# v1.0.0 | |
with: | |
organization: notdodo | |
requested-token-type: urn:pulumi:token-type:access_token:personal | |
scope: user:notdodo | |
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 | |
# v4.0.2 | |
with: | |
path: ~/.pulumi/plugins | |
key: python-3.12-pulumi-${{ hashFiles('**/poetry.lock') }} | |
restore-keys: | | |
python-3.12-pulumi- | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | |
# v4.0.2 | |
with: | |
role-to-assume: arn:aws:iam::841162699174:role/erfiume-oidc-read | |
aws-region: eu-west-1 | |
retry-max-attempts: 2 | |
- uses: aws-actions/aws-secretsmanager-get-secrets@4e95aaf6ba8028772f5384971d4fedccfaab8621 | |
# v2.0.6 | |
with: | |
secret-ids: CLOUDFLARE_API_TOKEN, erfiume-gha-cloudflare-read-only | |
- uses: pulumi/actions@c7fad9e2f0b79653172b36538b8b34b3c0291952 | |
# v6.0.0 | |
with: | |
command: preview | |
stack-name: notdodo/erfiume/production | |
diff: true | |
work-dir: ./pulumi | |
comment-on-pr: true | |
color: always | |
suppress-progress: true | |
always-include-summary: true |